Skip to content

Commit

Permalink
Update documentation/docs/60-appendix/30-migrating-to-sveltekit-2.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Dec 18, 2023
1 parent f09e1db commit 4728a54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function load({ fetch }) {

## goto(...) changes

`goto(...)` no longer accepts external URLs. To navigate to an external URL, use `window.location = url`. The `state` object now contributes to `$page.state` and requires an `App.PageState` shape, see [shallow routing](shallow-routing) for more info.
`goto(...)` no longer accepts external URLs. To navigate to an external URL, use `window.location = url`. The `state` object now determines `$page.state` and must adhere to the `App.PageState` interface, if declared. See [shallow routing](shallow-routing) for more details.

## paths are now relative by default

Expand Down

0 comments on commit 4728a54

Please sign in to comment.