I'm finding this chain of functions that deal with redirection really confusing. Is the idea here that we always want to load the static resources from `/static` at the site root rather than from `/path/to/some/app/static/`? If so then why not just modify the links we have to `/static` and not call `prependBaseUri` when we write them in the first place?