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(init): set default permalink value

LinkinStars3ed95686145c
diff --git a/internal/migrations/init.go b/internal/migrations/init.go
index 41d7dfda..19b03925 100644
--- a/internal/migrations/init.go
+++ b/internal/migrations/init.go
@@ -162,8 +162,9 @@ func (m *Mentor) initSiteInfoThemeConfig() {
}
func (m *Mentor) initSiteInfoSEOConfig() {
- seoData := map[string]string{
- "robots": defaultSEORobotTxt + m.userData.SiteURL + "/sitemap.xml",
+ seoData := map[string]interface{}{
+ "permalink": 1,
+ "robots": defaultSEORobotTxt + m.userData.SiteURL + "/sitemap.xml",
}
seoDataBytes, _ := json.Marshal(seoData)
_, m.err = m.engine.Context(m.ctx).Insert(&entity.SiteInfo{