Basically a user will get an email such as /verify/sometokenhere, and I’d like to get the param in the route-
My router is defined as
And I try to get the params in this way:
but for some reason I get undefined.
The params object does detect the token propery, but it’s undefined no matter what I send, and the user is getting there without any routing api, it’s directly from the URL bar.
How can I achieve this behavior? It’s an optional parameter.