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.

update short id

aichy126d7511a669729
diff --git a/internal/controller/template_controller.go b/internal/controller/template_controller.go
index eac2b48d..aa9e702a 100644
--- a/internal/controller/template_controller.go
+++ b/internal/controller/template_controller.go
@@ -167,6 +167,11 @@ func (tc *TemplateController) QuestionInfoeRdirect(ctx *gin.Context, siteInfo *s
id = uid.EnShortID(id)
NeedChangeShortID = true
}
+ } else {
+ if isShortID {
+ NeedChangeShortID = true
+ id = uid.DeShortID(id)
+ }
}
objectType, objectTypeerr := obj.GetObjectTypeStrByObjectID(uid.DeShortID(title))