Thanks for the fix! I can confirm that this workaround by @DannyUWP is working fine. ??
If you’re using next.js dynamic routing and want to remove the trailing slash add this before you handle the request:> >
> if (ctx.url.includes("/?")) {> if (ctx.url.substring(0, 2) != '/?') {> ctx.url = ctx.url.replace("/?", "?") // Remove trailing slash before params > ctx.url = ctx.url.replace(/\/\s*$/, "") // Remove trailing slash at the end> }> }>> > You probably don’t need to remove the trailing slash at the end but it’s there just in case