Fix double encoding in links (#36925)

pull/36931/head
Claire 2 months ago committed by GitHub
parent b14f113929
commit b4daad8c89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -38,7 +38,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}
>
@ -71,7 +71,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'

Loading…
Cancel
Save