Use encodeURIComponent instead of encodeURI

This commit is contained in:
Claire 2025-11-18 13:45:36 +01:00 committed by GitHub
parent 9c6d6138dd
commit 685339c3da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,7 @@ export const HandledLink: FC<HandledLinkProps & ComponentProps<'a'>> = ({
return ( return (
<Link <Link
className={classNames('mention hashtag', className)} className={classNames('mention hashtag', className)}
to={`/tags/${encodeURI(hashtag)}`} to={`/tags/${encodeURIComponent(hashtag)}`}
rel='tag' rel='tag'
data-menu-hashtag={hashtagAccountId} data-menu-hashtag={hashtagAccountId}
> >