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(tag): only use slugName in tagUrl

haitao(lj)85c59c27d481
diff --git a/ui/src/router/pathFactory.ts b/ui/src/router/pathFactory.ts
index 6d2725ce..8c98cfa3 100644
--- a/ui/src/router/pathFactory.ts
+++ b/ui/src/router/pathFactory.ts
@@ -1,7 +1,7 @@
import type * as Type from '@/common/interface';
const tagLanding = (tag: Type.Tag) => {
- let slugName = tag.main_tag_slug_name || tag.slug_name || '';
+ let slugName = tag.slug_name || '';
slugName = slugName.toLowerCase();
return `/tags/${encodeURIComponent(slugName)}`;
};