Worker path matching and query params conundrum
I'm seeing a lot of issues related to this and no real solution.
The problem is very simple and common:
I need something like
Some solutions I see commonly given and what is wrong with them:
The problem is very simple and common:
I need something like
example.com/a as a trigger for my worker, including any query strings or hashes in the url.Some solutions I see commonly given and what is wrong with them:
- use
example.com/a*- this will match also other paths like
example.com/aboutwhich is undesired
- this will match also other paths like
- use
example.com/a/*- this will not match
example.com/aand neither it will match any query strings, unless there is a trailing slash in the url
- this will not match
- I tried using
example.com/a?*trigger but this one will throws an error "Route pattern should not have query parameters"