[Glitch] Fix double encoding in links

Port b4daad8c89 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire committed 2025-11-19 21:51:54 +01:00
1 parent 76ba4000d9
commit 9c7f27ba14
1 file changed
+2 -2
@@ -144,7 +144,7 @@ export const HandledLink: FC<HandledLinkProps & ComponentProps<'a'>> = ({
return (
<Link
className={classNames('mention hashtag', className)}
to={`/tags/${hashtag}`}
to={`/tags/${encodeURIComponent(hashtag)}`}
rel='tag'
data-menu-hashtag={hashtagAccountId}
>
@@ -194,7 +194,7 @@ export const HandledLink: FC<HandledLinkProps & ComponentProps<'a'>> = ({
return (
<a
{...props}
href={encodeURI(href)}
href={href}
title={href}
className={classNames('unhandled-link', className)}
target='_blank'