From 7edf63d41b433e7a64fb8c15bbdc92272f78596b Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 9 Apr 2023 00:43:27 +0800 Subject: [PATCH] Fix hashtag url not working --- src/components/shortcuts-settings.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/shortcuts-settings.jsx b/src/components/shortcuts-settings.jsx index 12f0749d..7489e445 100644 --- a/src/components/shortcuts-settings.jsx +++ b/src/components/shortcuts-settings.jsx @@ -186,7 +186,8 @@ export const SHORTCUTS_META = { id: 'hashtag', title: ({ hashtag }) => hashtag, subtitle: ({ instance }) => instance, - path: ({ hashtag }) => `/t/${hashtag.split(/\s+/).join('+')}`, + path: ({ hashtag, instance }) => + `${instance ? `/${instance}` : ''}/t/${hashtag.split(/\s+/).join('+')}`, icon: 'hashtag', }, };