I tried to use the new library to handle loading MDX site content. In this case, all routes are defined dynamically. Here is my pull request and deploy preview.
However, Netlify added some weird redirect that doesn’t let me to keep trailing slash on the base path of our site. This redirect doesn’t exist when I run the project locally. It’s a big problem for us, because we have defined a redirect that adds a trailing slash to the site (because of SEO reasons). It all combined causes infinity loop and Too Many Redirects error.
How can I get rid of that Netlify redirect? As far as I investigated the problem, enabling Pretty URLs or AO doesn’t seem to help.
Hi, @Artur_Fracala. I’m not sure I understand. It is possible to have a URL without a slash after the domain name. It is a requirement of the HTTP standard that a minimum path of / must be used.
I also do not see this when making an HTTP request for that URL:
That show a 200 response and not a redirect. The path is definitely / as shown on this line:
> GET / HTTP/2
Would you please confirm the URL you see this happening for? Also, if you have the x-nf-request-id HTTP response header for an incorrect response, that will help us to find it as well.