Description
hello currently I'm observing a problem on ui-router/angular
when having a "special" character in my path or query param.
Currently I'm using ui-router/angular
with version 2.0.0, the "newest", however it's also reproducible on older versions, see the hello world plunker that I changed: https://plnkr.co/edit/5zgTiwtTCp05Vce545gs
if you click on 'About' you will see a logging output to the browser console.
Normally you should only see resolve
once, however it will be called twice.
this only happens when trying to open a url with [uiParams]
where one param has a special character (whitespace, etc). the thing is that ui-router correctly decodes the param and I guess that is also the bug.
Currently the second time the route gets called the query parameter is encoded, so calling a transition.params()
will only get the encoded version (I guess that is wrong behavior, too).
The bug only happens if you click on a uiSref
link, not if you reload the browser with the correct url.