mefechoel / svelte-navigator

Simple, accessible routing for Svelte
Other
506 stars 39 forks source link

parameters with Route #109

Open norricorp opened 1 year ago

norricorp commented 1 year ago

The docs show how to do the above.

So my code is

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

norricorp commented 1 year ago

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.