diff options
author | Hailey <me@haileyok.com> | 2024-03-07 09:04:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 09:04:02 -0800 |
commit | 1cf49517b517e8bee90bf937d033dff35cc9f690 (patch) | |
tree | 1163a375a75081615b52401791213eb40d34330b /src/screens/Hashtag.tsx | |
parent | 8b0e575f6423575c08e9a6748be41c888611d631 (diff) | |
download | voidsky-1cf49517b517e8bee90bf937d033dff35cc9f690.tar.zst |
Allow all encoding for hashtags in URL (#3131)
Diffstat (limited to 'src/screens/Hashtag.tsx')
-rw-r--r-- | src/screens/Hashtag.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screens/Hashtag.tsx b/src/screens/Hashtag.tsx index f1b817370..776cc585e 100644 --- a/src/screens/Hashtag.tsx +++ b/src/screens/Hashtag.tsx @@ -42,7 +42,7 @@ export default function HashtagScreen({ const [isPTR, setIsPTR] = React.useState(false) const fullTag = React.useMemo(() => { - return `#${tag.replaceAll('%23', '#')}` + return `#${decodeURIComponent(tag)}` }, [tag]) const queryParam = React.useMemo(() => { @@ -83,7 +83,7 @@ export default function HashtagScreen({ const onShare = React.useCallback(() => { const url = new URL('https://bsky.app') - url.pathname = `/hashtag/${tag}` + url.pathname = `/hashtag/${decodeURIComponent(tag)}` if (author) { url.searchParams.set('author', author) } |