transparently include prefix in redirects as well