This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 437
Programmatic navigation #29
Comments
For anyone searching for how to redirect sapper applications: import { goto } from '@sapper/app'
goto('your/path') |
Thanks for the goto, is this for non preload stuff vs the this.redirect(302, |
I feel like it would be super cool to have something reactive for this? Something like being able to change |
Unfortunately Jest fails with |
Is there a way to do |
This issue is 3 years old. To get help with |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
At some point we'll need to be able to do this sort of thing:
Presumably it would only fail if the
href
matched some route and there was an error during preload or render.Open question whether or not it should navigate if no route is matched (i.e. just doing
window.location.href = href
). I suppose probably yes.The text was updated successfully, but these errors were encountered: