Based on this thread, it seems like it might have to do with how the express router works with our redirects:
https://answers.netlify.com/t/redirect-to-function-not-working/4453/7
Want to try changing your app.use
function as described in that thread and see if that fixes things for you?