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

Colon inside of a link gets double encoded #4887

Open
joeworkman opened this issue Mar 7, 2025 · 1 comment
Open

Colon inside of a link gets double encoded #4887

joeworkman opened this issue Mar 7, 2025 · 1 comment

Comments

@joeworkman
Copy link

If I add a colon inside of a link, it will get double encoded. Example:

/archives/?q=title:example

The above will get encoded to

/archives/?q=title%253Aexample

The reason for this is that a : is %3a. However, for some reason, the % inside of that is then getting encoded into %25. This results in the output becoming %253A

@markedmondson
Copy link

markedmondson commented Mar 14, 2025

If you can host your own version of the link.js plugin, then this might fix it: https://temp.staticsave.com/67d377f381e55.js

It's version 4.3.0 with the isEnabled() fix from 4.5.0 added. The bug was introduced in 4.4.0 so this should solve the problem until we get a bugfix release.

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