Skip to content
Discussion options

You must be logged in to vote

goto is not available on the server. You will need to either

  1. Return a redirect property (https://kit.svelte.dev/docs/loading#output-redirect) https://kit.svelte.dev/docs/load#redirects
  2. Call goto inside onMount()
  3. Guard with if (browser) from $app/env

Replies: 6 comments 11 replies

Comment options

You must be logged in to vote
8 replies
@bluwy
Comment options

bluwy Jan 8, 2022
Collaborator

@justingolden21
Comment options

@Wolfr
Comment options

@joesdevil
Comment options

@gregg-cbs
Comment options

Answer selected by ignatiusmb
Comment options

You must be logged in to vote
2 replies
@yuliankarapetkov
Comment options

@sheijne
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gregg-cbs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #3244 on January 08, 2022 12:53.