Skip to content

Commit f9e0ab0

Browse files
committed
Remove extra slash
1 parent 703a61c commit f9e0ab0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/svelte.dev/src/hooks.server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ export async function handle({ event, resolve }) {
5757

5858
// For REPL. For some reason, the repl/+page.server.ts file is not working, so
5959
// we are doing the redirect here
60-
if (event.url.pathname.startsWith('/repl/')) {
61-
redirect(307, event.url.pathname.replace('/repl/', '/playground/'));
60+
if (event.url.pathname.startsWith('/repl')) {
61+
redirect(307, event.url.pathname.replace('/repl', '/playground'));
6262
}
6363

6464
// Best effort to redirect from Svelte 3 tutorial to new tutorial

0 commit comments

Comments
 (0)