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: timeline for tag url add mian tag slug-name

shuaida20711a6dcb
diff --git a/ui/src/common/interface.ts b/ui/src/common/interface.ts
index 98d3e041..4d0d9bb3 100644
--- a/ui/src/common/interface.ts
+++ b/ui/src/common/interface.ts
@@ -399,6 +399,7 @@ export interface TimelineObject {
object_type: string;
question_id: string;
answer_id: string;
+ main_tag_slug_name?: string;
}
export interface TimelineRes {
diff --git a/ui/src/pages/Timeline/index.tsx b/ui/src/pages/Timeline/index.tsx
index 74129723..09a344e4 100644
--- a/ui/src/pages/Timeline/index.tsx
+++ b/ui/src/pages/Timeline/index.tsx
@@ -34,7 +34,10 @@ const Index: FC = () => {
}
if (timelineData?.object_info.object_type === 'tag') {
- linkUrl = `/tags/${timelineData?.object_info.title}`;
+ linkUrl = `/tags/${
+ timelineData?.object_info.main_tag_slug_name ||
+ timelineData?.object_info.title
+ }`;
}
const revisionList =