Fix double encoding in links (#36925)
This commit is contained in:
parent
c08cd6d62a
commit
4ee21c2e29
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue