Hi.
So I am having a bit of a problem with netlify redirects that I remember to have worked fine a few weeks ago.
I have a redirect to a netlify function for pages that aren’t built yet. The redirect sets some needed values on the function via query parameters:
[[redirects]]
from='/wishes.mine/*'
to='/.netlify/functions/wishes_render?key=:splat&type=mine'
status=200
That redirect has been working (at least I remember it so) 2 weeks ago but now I am getting the function called but with the original request. So there is no way for my function to know query parameters that have been set in the rewrite.
You can check out the problem here: https://twinkl.netlify.app/wishes.mine/i-dont-exist
What you see is an error response I generate from the render function that exposes the request object. And in that request object, there are NO query parameters set as well as the ORIGINAL path, rather than the redirected one.
netlify.dev doesn’t have this behaviour by the way and wortks as expected.
Thank’s so much for your help looking into this,
Josh