Fix redirect for web request dirs

If a web request is for an index page and the path doesn't end in /
then the browser is redirected (eg request becomes request/) - this
fixes relative asset paths