TehShrike / abstract-state-router

Like ui-router, but without all the Angular. The best way to structure a single-page webapp.
http://tehshrike.github.io/state-router-example
294 stars 26 forks source link

When using pushState routing, encodeURI should be used instead of encodeURIComponent #124

Open TehShrike opened 5 years ago

TehShrike commented 5 years ago

Reported by stalkerg in chat.

https://github.com/TehShrike/page-path-builder/blob/93a1c9130f6e17aa22689084b010ceecd7444b77/index.js#L20

Current thought on how to fix it: update page-path-builder to take an encode function as an option, and then add encode as an initialization option for ASR as well