mefechoel / svelte-navigator

Simple, accessible routing for Svelte
Other
506 stars 39 forks source link

URL encoding with special characters does not work as expected #116

Open SilverSomma opened 5 months ago

SilverSomma commented 5 months ago

Describe the bug

Encoded values with special characters given to the Route component do not result in a correctly decoded values inside of the components.

To Reproduce Steps to reproduce the behavior:

Pass on a encoded path variable into the Route component that contains the character '/' for example. Also works with characters like "; / ? : @ & = + $ , #".

https://svelte.dev/repl/904a05757be043a7a6c1f22332179472?version=4.2.8

Expected behavior

The result variable should contain the decoded special symbol not the encoded one.