Skip to content

Commit e24297e

Browse files
authored
[docs] warn about redirect bug (#6248)
1 parent d249b5c commit e24297e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

documentation/docs/05-load.md

+2
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ If an _unexpected_ error is thrown, SvelteKit will invoke [`handleError`](/docs/
327327

328328
To redirect users, use the `redirect` helper from `@sveltejs/kit` to specify the location to which they should be redirected alongside a `3xx` status code.
329329

330+
> There is a known bug with `redirect`: it will currently fail during client-side navigation, due to [#5952](https://github.com/sveltejs/kit/issues/5952)
331+
330332
```diff
331333
/// file: src/routes/admin/+layout.server.js
332334
-import { error } from '@sveltejs/kit';

0 commit comments

Comments
 (0)