Worker Quick Edit not passing Query Params from Response URL

I’ve set up a worker to receieve a URL with some query parameters.

This was working yesterday, but today, on inspecting the worker in Quick Edit, the URL seems to be stripped of its query params at some point prior to hitting my JavaScript in the worker:

Any ideas?

Using a URL object and using .get on searchParams seems to work, although you’re right in that console.log doesn’t show the params, not even JSON.stringify(searchParams).

https://cloudflareworkers.com/#27ddb3cb5565ab40e2956ef43dc31cec:https://tutorial.cloudflareworkers.com/aa?name=mike

1 Like

I swear it was working yesterday!

Appears to work fine when the end point is hit outside of Quick Edit, I think it’s just a Quick Edit bug. I’ve managed to work around it for now (hardcoding a test value in to the script for testing within Quick Edit).

Thanks for taking the time to reproduce.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.