mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-28 10:30:49 +00:00
Fix double encoding in links (#36925)
This commit is contained in:
parent
2d195d4e8b
commit
d950d52640
|
|
@ -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/${hashtag}`}
|
to={`/tags/${encodeURIComponent(hashtag)}`}
|
||||||
rel='tag'
|
rel='tag'
|
||||||
data-menu-hashtag={hashtagAccountId}
|
data-menu-hashtag={hashtagAccountId}
|
||||||
>
|
>
|
||||||
|
|
@ -71,7 +71,7 @@ export const HandledLink: FC<HandledLinkProps & ComponentProps<'a'>> = ({
|
||||||
return (
|
return (
|
||||||
<a
|
<a
|
||||||
{...props}
|
{...props}
|
||||||
href={encodeURI(href)}
|
href={href}
|
||||||
title={href}
|
title={href}
|
||||||
className={classNames('unhandled-link', className)}
|
className={classNames('unhandled-link', className)}
|
||||||
target='_blank'
|
target='_blank'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user