parameters with Route
The docs show how to do the above. <Route path="blog/:id" let:params> <BlogPost id="{params.id}" /> </Route>
So my code is <Route path="/resetpw:token" let:params> <ResetPW token="{params.token}" /> </Route>
In a browser, if I try to http://localhost:3000/resetpw then that page is not found. And equally if I use http://localhost:3000/resetpw?token=ewudheiuhdeuih then same result.
So two questions. Any ideas what I am doing wrong? If Route has a parameter, does that parameter have to be present to be picked up by Route?
Regards, John
So I have just realised that I actually need http://localhost:3000/resetpw/ewudheiuhdeuih. Which is a bit of an issue because the url will be delivered with params.