fix: don't use fork of unrelated route (#14947)
authorSimon H <5968653+dummdidumm@users.noreply.github.com>
Thu, 20 Nov 2025 08:44:44 +0000 (09:44 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Nov 2025 08:44:44 +0000 (09:44 +0100)
commitd8c8bd7809c10c6abaf3ad4b72f6a8fa27b4c748
treef361c98e489f16c78ce75805221c80b60f126a21
parent94935df66d378e68651c1b8982ee62e6187ddcba
fix: don't use fork of unrelated route (#14947)

We haven't been checking if the fork still matches the route we want to load at the end of the navigation. At that point it could've changed, or it could never have matched (as in the related issue). Fixes #14946
.changeset/dull-spies-hammer.md [new file with mode: 0644]
packages/kit/src/runtime/client/client.js
packages/kit/test/apps/basics/src/routes/data-sveltekit/preload-data/offline/slow-navigation/+page.svelte
packages/kit/test/apps/basics/src/routes/data-sveltekit/preload-data/offline/target/+page.svelte
packages/kit/test/apps/basics/test/client.test.js