use url rather than path in redirects