Prefix hashtag text with URL-encoded hashtag character

This commit is contained in:
Sebastian Hädrich 2025-06-22 01:40:27 +02:00 committed by GitHub
parent 81512ab4ca
commit 6af65171f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,7 +116,7 @@ export const HashtagMenuController: React.FC = () => {
text: intl.formatMessage(messages.muteHashtag, {
hashtag,
}),
href: `/filters?custom_filter[keywords_attributes][0][keyword]=${hashtag}&custom_filter[keywords_attributes][0][whole_word]=1`,
href: `/filters?custom_filter[keywords_attributes][0][keyword]=%23${hashtag}&custom_filter[keywords_attributes][0][whole_word]=1`,
dangerous: true,
},
],