Skip to content

Conversation

@gbj
Copy link
Collaborator

@gbj gbj commented Nov 19, 2025

Currently, the search query and hash of a URL are unescaped when clicking them. This means that if escaped characters are used in these pieces of links, they will be replaced. If they are URL characters like & this can change behavior (#4453). If they are characters like newlines, they may disappear from the URL entirely (#4232).

I guess this is technically a breaking change but I'm not sure that unescaping these portions is ever actually the correct choice. I guess I'd be curious to hear from anyone for whom this would cause issues.

Note that values are unescaped in use_query_map() etc. in any case, so that ?arg=foo%26a%3Dbar was and is still interpreted as a param of the value foo&a=bar.

@gbj gbj merged commit 629f4f9 into main Nov 21, 2025
281 checks passed
maccesch pushed a commit to maccesch/leptos that referenced this pull request Nov 24, 2025
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

Successfully merging this pull request may close these issues.

2 participants