You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For any route r and a set of parameters obj, I would expect r(r(obj)) to result in obj.
That is, building a url and then parsing it back should give the original set of parameters.
Unfortunately, that is not the case if any parameters contain slashes:
docuri.route('/:key','r')varpath=docuri['r']({key:'foo/bar'});// path is '/foo/bar'docuri['r'](path)
This is because forward slashes are not encoded in any way when building the URL and the information is lost. Fixing this is likely not backwards-compatible, but also important, isn't it?
The text was updated successfully, but these errors were encountered:
For any route
r
and a set of parametersobj
, I would expectr(r(obj))
to result inobj
.That is, building a url and then parsing it back should give the original set of parameters.
Unfortunately, that is not the case if any parameters contain slashes:
Observed result:
false
.Expected result:
{key:'foo/bar'}
.This is because forward slashes are not encoded in any way when building the URL and the information is lost. Fixing this is likely not backwards-compatible, but also important, isn't it?
The text was updated successfully, but these errors were encountered: