Get relative url in routes for redirecting to login