In my routes file I have this:
'micros-test/guest-booking/(?P<bookingId>[a-z0-9-]*)' => 'micros-test/guest-booking',
Which works fine for URLS like this:
/en/micros-test/guest-booking/some-valid-alphanumeric-id
However I need to add another that I can't get working, this time with a querystring value, such as this:
/en/micros-test/guest-reset-password?token=some-valid-alphanumeric-id
How can I get that to route to my endpoint and pass on the token parameter?
I've tried this but to no avail:
'micros-test/guest-reset-password/?token=(?P<token>[a-z0-9-]*)' => 'micros-test/guest-reset-password',
What have I got wrong there?
tokendoes indeed cause a 404 on an otherwise working route. Must be used by the system for something, can't say I've seen it documented though. – Adam Gilleard Apr 17 '15 at 13:21