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.

feat(init): set permalink init config is only question id

LinkinStarsac25160791b0
diff --git a/internal/migrations/init.go b/internal/migrations/init.go
index 55914a04..a56216aa 100644
--- a/internal/migrations/init.go
+++ b/internal/migrations/init.go
@@ -23,6 +23,7 @@ import (
"context"
"encoding/json"
"fmt"
+ "github.com/apache/incubator-answer/internal/base/constant"
"time"
"github.com/apache/incubator-answer/internal/base/data"
@@ -207,7 +208,7 @@ func (m *Mentor) initSiteInfoThemeConfig() {
func (m *Mentor) initSiteInfoSEOConfig() {
seoData := map[string]interface{}{
- "permalink": 1,
+ "permalink": constant.PermalinkQuestionID,
"robots": defaultSEORobotTxt + m.userData.SiteURL + "/sitemap.xml",
}
seoDataBytes, _ := json.Marshal(seoData)