Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only %25 in uri is decoded internally #884

Open
ryeonho opened this issue Jul 21, 2021 · 1 comment
Open

only %25 in uri is decoded internally #884

ryeonho opened this issue Jul 21, 2021 · 1 comment

Comments

@ryeonho
Copy link

ryeonho commented Jul 21, 2021

<Link to={encodeURIComponent('%')}>

produces

<a href="%">

not

<a href="%25">

not like

<Link to={encodeURIComponent('?')}>

produces

<a href="%3F">

my workaround is

const a = '!@#%&&*'
<Link to={encodeURIComponent(a.replace('%', '%25')}>

which produces

<a href="!%40%23%25%26%26*">

hope this help someone.

@StringEpsilon
Copy link

This was an intentional change in v5.

You can read the details in #551 and #516. I forgot to mention that in my unofficial breaking changes documentation: #811

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants