diff --git a/modules/markup/html.go b/modules/markup/html.go index 7c4c10ee22105..4d1b49e241550 100644 --- a/modules/markup/html.go +++ b/modules/markup/html.go @@ -484,7 +484,7 @@ func createCustomEmoji(alias, class string) *html.Node { } if class != "" { img.Attr = append(img.Attr, html.Attribute{Key: "alt", Val: fmt.Sprintf(`:%s:`, alias)}) - img.Attr = append(img.Attr, html.Attribute{Key: "src", Val: fmt.Sprintf(`%s/img/emoji/%s.png`, setting.StaticURLPrefix, alias)}) + img.Attr = append(img.Attr, html.Attribute{Key: "src", Val: fmt.Sprintf(`%s/assets/img/emoji/%s.png`, setting.StaticURLPrefix, alias)}) } span.AppendChild(img) diff --git a/modules/markup/html_test.go b/modules/markup/html_test.go index 3425c3d3a8872..fa8c848601fe6 100644 --- a/modules/markup/html_test.go +++ b/modules/markup/html_test.go @@ -283,7 +283,7 @@ func TestRender_emoji(t *testing.T) { //Text that should be turned into or recognized as emoji test( ":gitea:", - `

:gitea:

`) + `

:gitea:

`) test( "Some text with 😄 in the middle",