mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix incorrect asset URL (#15805)
Fixes another regression from https://github.com/go-gitea/gitea/pull/15219.
This commit is contained in:
		@@ -766,7 +766,7 @@ func ReactionToEmoji(reaction string) template.HTML {
 | 
			
		||||
	if val != nil {
 | 
			
		||||
		return template.HTML(val.Emoji)
 | 
			
		||||
	}
 | 
			
		||||
	return template.HTML(fmt.Sprintf(`<img alt=":%s:" src="%s/img/emoji/%s.png"></img>`, reaction, setting.StaticURLPrefix, reaction))
 | 
			
		||||
	return template.HTML(fmt.Sprintf(`<img alt=":%s:" src="%s/assets/img/emoji/%s.png"></img>`, reaction, setting.StaticURLPrefix, reaction))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// RenderNote renders the contents of a git-notes file as a commit message.
 | 
			
		||||
 
 | 
			
		||||
@@ -173,7 +173,7 @@ func WebRoutes() *web.Route {
 | 
			
		||||
 | 
			
		||||
	// this png is very likely to always be below the limit for gzip so it doesn't need to pass through gzip
 | 
			
		||||
	routes.Get("/apple-touch-icon.png", func(w http.ResponseWriter, req *http.Request) {
 | 
			
		||||
		http.Redirect(w, req, path.Join(setting.StaticURLPrefix, "img/apple-touch-icon.png"), 301)
 | 
			
		||||
		http.Redirect(w, req, path.Join(setting.StaticURLPrefix, "/assets/img/apple-touch-icon.png"), 301)
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	gob.Register(&u2f.Challenge{})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user