We wish to encode the parameters we use in our routes so that any frontslashes in the parameters are escaped and not interpreted as part of the path. How/where would we do that?
Say we have configured the following route with config.map():
If we have bar=“emperor/penguin” we want the resolved route to be ‘foo/emperor%2Fpenguin’ rather than ‘foo/emperor/penguin’, because the extra slash in the latter will lead to a non-existent page.
If we have bar=“emperor penguin”, the space will be encoded, resulting in the route ‘foo/emperor%20penguin’. Why would spaces be encoded and not frontslashes?