-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
const a = new RouteParser('/foo/:bar')
a.reverse({bar: 'hi/test'})
// Returns "/foo/hi/test"
a.reverse({bar: 'hi test'})
// Returns "/foo/hi%20test"
Either the first should return "/foo/hi%2ftest" (by calling EncodeURIComponent on each param) or the second should return "/foo/hi test"(so that the caller can encode the components). But with the current behavior, there is no way to encode a string like "foo hi/test" because there is no way to encode both the slash without double encoding the space (ie. into "%2520")
m-lautenbach and hiagolcm
Metadata
Metadata
Assignees
Labels
No labels