Fix redirect

Fixes #255 

Note: tests will now run twice, once without BASE_URL and once with the BASE_URL set to '/docs' (to test deployments like http://auth0.com/docs)