If anyone still comes across this issue using nextjs. For me I had to disable this in next.config.js.
trailingSlash: true,
Took me 2 hours 🥲