A user of ours found a bug where some id put into a path that had / in it was causing the same generated path to not be routable, because the parameters were not being encoded. This PR encodes and decodes them, handing splat params to restore slashes to preserve functionality.
A user of ours found a bug where some id put into a path that had
/
in it was causing the same generated path to not be routable, because the parameters were not being encoded. This PR encodes and decodes them, handing splat params to restore slashes to preserve functionality.One assertion that didn't make sense was
round-tripping
comments/the/id/edit
wouldn't even matchcomments/:id?/edit
. Now it will with these changes.