Redirect: fix infinite redirect in 404 view (#12237)
When the redirect logic is run from the 404 handler, the request
actually comes from the `/_proxito_404_/path/to/file` path, so we can't
compare the path from the current request to check for infinite
redirects, we already pass the proper path from the request or 404 in
the path parameter.