Our site prestosql.io
has a proxy configured for the /docs/*
path. When a URL under this path is accessed without a trailing slash, Netlify redirects to the proxied site rather than proxying. For example, make a request to the following URL (note the lack of trailing slash):
It results in a 301 to the proxied site:
I believe that Netlify is making an internal request without the trailing slash to the proxied site:
The proxied site then responds to Netlify with a 301 redirect to add the trailing slash. However, Netlify is then forwarding that redirect URL as-is, rather than rewriting it to be local to the Netlify hosted website.
My expectation is that Netlify would return a 301 redirect to the following:
Is there a way to make trailing slash redirects work properly in this situation?