We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b6bcc8 commit c0f77baCopy full SHA for c0f77ba
apps/svelte.dev/src/hooks.server.js
@@ -55,6 +55,12 @@ export async function handle({ event, resolve }) {
55
redirect(307, destination);
56
}
57
58
+ // For REPL. For some reason, the repl/+page.server.ts file is not working, so
59
+ // we are doing the redirect here
60
+ if (event.url.pathname.startsWith('/repl/')) {
61
+ redirect(307, event.url.pathname.replace('/repl/', '/playground/'));
62
+ }
63
+
64
// Best effort to redirect from Svelte 3 tutorial to new tutorial
65
if (event.url.pathname.startsWith('/tutorial/') && event.url.pathname.split('/').length === 2) {
66
redirect(307, event.url.pathname.replace('/tutorial/', '/tutorial/svelte/'));
0 commit comments