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 url

aichy1268cbdbf53ebdd
diff --git a/internal/router/template_router.go b/internal/router/template_router.go
index af108081..7b5c61dd 100644
--- a/internal/router/template_router.go
+++ b/internal/router/template_router.go
@@ -35,8 +35,8 @@ func (a *TemplateRouter) RegisterTemplateRouter(r *gin.RouterGroup) {
r.GET("/index", a.templateController.Index)
r.GET("/questions", a.templateController.QuestionList)
- r.GET("/questions/:id/", a.templateController.QuestionInfo)
- r.GET("/questions/:id/:title/", a.templateController.QuestionInfo)
+ r.GET("/questions/:id", a.templateController.QuestionInfo)
+ r.GET("/questions/:id/:title", a.templateController.QuestionInfo)
r.GET("/questions/:id/:title/:answerid", a.templateController.QuestionInfo)
r.GET("/tags", a.templateController.TagList)