I'm writing a wai Application where I want one endpoint to redirect to another. Ideally I would be able to use this Application hosted top-level (e.g. on `
example.com/`) but also on subpaths (e.g. `
example.com/foo`) without changing the code. One approach I have seen (in python projects) is to just have a global configuration variable that has to be set to the path where the application is hosted. This is then used to construct absolute redirects. However I'd like to use relative redirects to get away without that. And wai also nicely allows that (through `pathInfo` and `rawPathInfo`), as long as the routing libraries behave correctly.