about summary refs log tree commit diff
path: root/src/components/TagMenu/index.web.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-03-07 09:04:02 -0800
committerGitHub <noreply@github.com>2024-03-07 09:04:02 -0800
commit1cf49517b517e8bee90bf937d033dff35cc9f690 (patch)
tree1163a375a75081615b52401791213eb40d34330b /src/components/TagMenu/index.web.tsx
parent8b0e575f6423575c08e9a6748be41c888611d631 (diff)
downloadvoidsky-1cf49517b517e8bee90bf937d033dff35cc9f690.tar.zst
Allow all encoding for hashtags in URL (#3131)
Diffstat (limited to 'src/components/TagMenu/index.web.tsx')
-rw-r--r--src/components/TagMenu/index.web.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/TagMenu/index.web.tsx b/src/components/TagMenu/index.web.tsx
index a0dc2bce6..8245bd019 100644
--- a/src/components/TagMenu/index.web.tsx
+++ b/src/components/TagMenu/index.web.tsx
@@ -66,7 +66,7 @@ export function TagMenu({
         label: _(msg`See ${truncatedTag} posts`),
         onPress() {
           navigation.push('Hashtag', {
-            tag: tag.replaceAll('#', '%23'),
+            tag: encodeURIComponent(tag),
           })
         },
         testID: 'tagMenuSearch',
@@ -83,7 +83,7 @@ export function TagMenu({
           label: _(msg`See ${truncatedTag} posts by user`),
           onPress() {
             navigation.push('Hashtag', {
-              tag: tag.replaceAll('#', '%23'),
+              tag: encodeURIComponent(tag),
               author: authorHandle,
             })
           },