Open
Description
Describe the bug
This adds /c
to the browser history:
goto('/b', { replaceState: true })
// src\routes\b\+page.ts
import { redirect } from '@sveltejs/kit';
export const load = () => redirect(302, '/c');
Since this is a SvelteKit client-side navigation, I hope the state is replaced as originally intended.
Reproduction
https://github.com/hyunbinseo/svelte-kit-13403
Click the buttons in consecutive order and check the tab history (right-click on the browser back button)
2025-02-02.162353.mp4
System Info
System:
OS: Windows 11 10.0.26100
CPU: (8) x64 Intel(R) Core(TM) Ultra 7 258V
Memory: 8.76 GB / 31.51 GB
Binaries:
Node: 22.14.0 - ~\AppData\Local\fnm_multishells\34648_1742967076895\node.EXE
npm: 10.9.2 - ~\AppData\Local\fnm_multishells\34648_1742967076895\npm.CMD
pnpm: 10.6.5 - ~\AppData\Local\fnm_multishells\34648_1742967076895\pnpm.CMD
Browsers:
Edge: Chromium (131.0.2903.112)
npmPackages:
@sveltejs/adapter-auto: ^4.0.0 => 4.0.0
@sveltejs/kit: ^2.20.2 => 2.20.2
@sveltejs/vite-plugin-svelte: ^5.0.3 => 5.0.3
svelte: ^5.25.3 => 5.25.3
vite: ^6.2.3 => 6.2.3
Severity
annoyance
Additional Information
No response