Fix URL hack for redirects.