I am using middleware in `/functions` to secure some pages. But when the url has double slashes `//`

I am using middleware in /functions to secure some pages. But when the url has double slashes //, wrangler doesn't run the middleware for the url.

I have replicated the issue in a minimal repo here https://github.com/Shivam010/cloudflare-double-slashes-issue

I have also asked help on wrangler-sdk repo https://github.com/cloudflare/workers-sdk/issues/3677 but it feels like they are overburdened with other issues.

Am I missing something here? or is this an actual issue?
GitHub
Contribute to Shivam010/cloudflare-double-slashes-issue development by creating an account on GitHub.
GitHub
Which Cloudflare product(s) does this pertain to? Pages What version(s) of the tool(s) are you using? latest What version of Node are you using? 20.1.0 What operating system are you using? Mac Desc...
Was this page helpful?