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: /install path will be redirected to /ˆ

LinkinStar555c1936ade4
diff --git a/internal/router/ui.go b/internal/router/ui.go
index 3498265c..f1296d9f 100644
--- a/internal/router/ui.go
+++ b/internal/router/ui.go
@@ -78,6 +78,9 @@ func (a *UIRouter) Register(r *gin.Engine) {
filePath = UIRootFilePath + name
case "/manifest.json":
filePath = UIRootFilePath + name
+ case "/install":
+ c.Redirect(http.StatusFound, "/")
+ return
default:
filePath = UIIndexFilePath
c.Header("content-type", "text/html;charset=utf-8")