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.
update seo perma link
aichy12640f66f505c81
diff --git a/internal/controller/template_controller.go b/internal/controller/template_controller.goindex e9048ae3..cf9dd5ee 100644--- a/internal/controller/template_controller.go+++ b/internal/controller/template_controller.go@@ -184,9 +184,9 @@ func (tc *TemplateController) QuestionInfoeRdirect(ctx *gin.Context, siteInfo *stitleIsAnswerID = true}}-+ siteInfo = tc.SiteInfo(ctx)url = fmt.Sprintf("%s/questions/%s", siteInfo.General.SiteUrl, id)- if siteInfo.SiteSeo.PermaLink == schema.PermaLinkQuestionID {+ if siteInfo.SiteSeo.PermaLink == schema.PermaLinkQuestionID || siteInfo.SiteSeo.PermaLink == schema.PermaLinkQuestionIDByShortID {if len(ctx.Request.URL.Query()) > 0 {url = fmt.Sprintf("%s?%s", url, ctx.Request.URL.RawQuery)}