You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
breaking: disallow external navigation using goto (#11207)
* breaking: disallow external navigation using `goto` by default
closes#8775
* do it here instead
* adjust test
* remove option, TODO tests
* tweak message
* Update .changeset/silent-games-taste.md
* add a test, remove an obsolete test
* fix test
* prettier
* fix
* Update packages/kit/src/exports/public.d.ts
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
* Update packages/kit/src/runtime/client/client.js
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
* fix test
* DRY out
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
* @param {boolean} [opts.replaceState] If `true`, will replace the current `history` entry rather than creating a new one with `pushState`
24
24
* @param {boolean} [opts.noScroll] If `true`, the browser will maintain its scroll position rather than scrolling to the top of the page after navigation
25
25
* @param {boolean} [opts.keepFocus] If `true`, the currently focused element will retain focus after navigation. Otherwise, focus will be reset to the body
26
-
* @param {boolean} [invalidateAll] If `true`, all `load` functions of the page will be rerun. See https://kit.svelte.dev/docs/load#rerunning-load-functions for more info on invalidation.
26
+
* @param {boolean} [opts.invalidateAll] If `true`, all `load` functions of the page will be rerun. See https://kit.svelte.dev/docs/load#rerunning-load-functions for more info on invalidation.
27
27
* @param {any} [opts.state] The state of the new/updated history entry
0 commit comments