-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Labels
formsStuff relating to forms and form actionsStuff relating to forms and form actions
Description
Describe the bug
<form {...redirectForm} target="_blank">
<button>Plain Submit</button>
</form>export const redirectForm = form(object({ id: optional(string()) }), () => {
// NOTE Changing to external link works
redirect(307, resolve('/a')); // form target is not respected
redirect(307, 'https://svelte.dev/'); // form target is respected
});Reproduction
https://github.com/hyunbinseo/svelte-kit-templates/tree/svelte-kit-15197
Logs
System Info
System:
OS: Windows 11 10.0.26200
CPU: (8) x64 Intel(R) Core(TM) Ultra 7 258V
Memory: 4.55 GB / 31.48 GB
Binaries:
Node: 24.13.0 - C:\Users\hyunb\AppData\Local\fnm_multishells\20244_1769082235758\node.EXE
npm: 11.6.2 - C:\Users\hyunb\AppData\Local\fnm_multishells\20244_1769082235758\npm.CMD
pnpm: 10.28.1 - C:\Users\hyunb\AppData\Local\fnm_multishells\20244_1769082235758\pnpm.CMD
Deno: 2.4.0 - C:\Users\hyunb\.deno\bin\deno.EXE
Browsers:
Chrome: 144.0.7559.96
Edge: Chromium (140.0.3485.54)
Firefox: 147.0.1 - C:\Program Files\Mozilla Firefox\firefox.exe
npmPackages:
@sveltejs/adapter-auto: ^7.0.0 => 7.0.0
@sveltejs/kit: ^2.50.0 => 2.50.0
@sveltejs/vite-plugin-svelte: ^6.2.4 => 6.2.4
svelte: ^5.48.0 => 5.48.0
vite: ^7.3.1 => 7.3.1Severity
annoyance
Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
formsStuff relating to forms and form actionsStuff relating to forms and form actions