mefechoel / svelte-navigator

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

Can't go to the parent of parent route directly using navigate('/') i.e. from "/some/nestedpath" to "/" #62

Closed inferno-umar closed 2 years ago

inferno-umar commented 2 years ago

Error thrown is "Paused on promise rejection" err

inferno-umar commented 2 years ago

Currently this worked for me https://github.com/mefechoel/svelte-navigator/issues/52

But is it possible what I was doing at first ?

mefechoel commented 2 years ago

I'd need some more context to help you, but if I understand it correctly, you want to go to some url thats outside of the current route. If for example you're inside a Route with path="/some/path" and you want to go to /, you can do navigate("../.."). See the Link documentation for an example.