Skip to content

Commit e961515

Browse files
committed
more fixes
1 parent 95557e7 commit e961515

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

documentation/docs/30-advanced/67-shallow-routing.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ By default, the above examples create a new navigation entry in the history stac
7575

7676
```js
7777
import { goto } from '$app/navigation';
78+
const url = new URL('https://example.com');
7879
// ---cut---
7980
goto(url, {
8081
state,
@@ -86,6 +87,7 @@ By default, state set with `goto` is not restored after a reload. To change that
8687

8788
```js
8889
import { goto } from '$app/navigation';
90+
const url = new URL('https://example.com');
8991
// ---cut---
9092
goto(url, {
9193
state,
@@ -97,6 +99,7 @@ Shallow navigations preserve the current scroll position and focused element by
9799

98100
```js
99101
import { goto } from '$app/navigation';
102+
const url = new URL('https://example.com');
100103
// ---cut---
101104
goto(url, {
102105
shallow: true,

0 commit comments

Comments
 (0)