From 2fc17c7e41dfeb867f8c0e6147fd6d889d8c96c9 Mon Sep 17 00:00:00 2001 From: daryl Date: Tue, 1 Oct 2024 16:48:09 +0800 Subject: [PATCH] fix(tag): jump url (#427) --- src/components/XUDTTag/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/XUDTTag/index.tsx b/src/components/XUDTTag/index.tsx index 50dc45f00..eb4afdd2c 100644 --- a/src/components/XUDTTag/index.tsx +++ b/src/components/XUDTTag/index.tsx @@ -40,7 +40,7 @@ const XUDTTag = ({ tagName, to, tooltip = false }: { tagName: string; to?: strin } else { search.set('tags', [...tags, tag].join(',')) } - push(`${`/${i18n.language}${to ?? window.location.pathname}`}?${search}`) + push(`${to ?? window.location.pathname}?${search}`) } if (tooltip) {