Skip to content

Unescape params when using raw path routing

Latest

Choose a tag to compare

@sam-peach sam-peach released this 02 Feb 14:21
451b2c5

Previously, when using rawPathRouting = true with a path of /:my_param and a route of my-domain.com/foo%2Fbar, the handler would receive the raw foo%2Fbar as params. This meant all downstream code had to add logic unescaping the raw params.

This release keeps the routing on the raw path (my-domain.com/foo%2Fbar will correctly match the path /:my_param) but the params are now unescaped before being passed to the handler - restoring the previous contract.