Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix web icon

aichy1269bba51b2e2ad
diff --git a/internal/router/ui.go b/internal/router/ui.go
index 86740dbc..f94bcd3f 100644
--- a/internal/router/ui.go
+++ b/internal/router/ui.go
@@ -90,6 +90,9 @@ func (a *UIRouter) Register(r *gin.Engine) {
if branding.Favicon != "" {
c.String(http.StatusOK, htmltext.GetPicByUrl(branding.Favicon))
return
+ } else if branding.SquareIcon != "" {
+ c.String(http.StatusOK, htmltext.GetPicByUrl(branding.SquareIcon))
+ return
} else {
c.Header("content-type", "image/vnd.microsoft.icon")
filePath = UIRootFilePath + urlPath