Allow all encoding for hashtags in URL (#3131)
This commit is contained in:
parent
8b0e575f64
commit
1cf49517b5
3 changed files with 6 additions and 6 deletions
|
@ -98,7 +98,7 @@ export function TagMenu({
|
|||
|
||||
control.close(() => {
|
||||
navigation.push('Hashtag', {
|
||||
tag: tag.replaceAll('#', '%23'),
|
||||
tag: encodeURIComponent(tag),
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -153,7 +153,7 @@ export function TagMenu({
|
|||
|
||||
control.close(() => {
|
||||
navigation.push('Hashtag', {
|
||||
tag: tag.replaceAll('#', '%23'),
|
||||
tag: encodeURIComponent(tag),
|
||||
author: authorHandle,
|
||||
})
|
||||
})
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue