Adding support for deployments are non root URLs