From baa2605d27985cc492add8853614b74472339f4c Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 1 Oct 2023 14:38:28 +0800 Subject: [PATCH] Fix navigate not working --- src/pages/hashtag.jsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/pages/hashtag.jsx b/src/pages/hashtag.jsx index d9a91564..a34cf475 100644 --- a/src/pages/hashtag.jsx +++ b/src/pages/hashtag.jsx @@ -258,11 +258,14 @@ function Hashtags({ columnMode, ...props }) { onClick={(e) => { hashtags.splice(i, 1); hashtags.sort(); - navigate( - instance - ? `/${instance}/t/${hashtags.join('+')}` - : `/t/${hashtags.join('+')}`, - ); + // navigate( + // instance + // ? `/${instance}/t/${hashtags.join('+')}` + // : `/t/${hashtags.join('+')}`, + // ); + location.hash = instance + ? `/${instance}/t/${hashtags.join('+')}` + : `/t/${hashtags.join('+')}`; }} > @@ -317,7 +320,8 @@ function Hashtags({ columnMode, ...props }) { } if (newInstance) { newInstance = newInstance.toLowerCase().trim(); - navigate(`/${newInstance}/t/${hashtags.join('+')}`); + // navigate(`/${newInstance}/t/${hashtags.join('+')}`); + location.hash = `/${newInstance}/t/${hashtags.join('+')}`; } }} >