Skip to content

Commit d3b0ba3

Browse files
committed
use resolve
1 parent e5662f8 commit d3b0ba3

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/routes/(console)/onboarding/create-project/+page.svelte

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { Dependencies } from '$lib/constants';
99
import { Submit, trackError, trackEvent } from '$lib/actions/analytics';
1010
import { goto, invalidate } from '$app/navigation';
11-
import { base } from '$app/paths';
11+
import { base, resolve } from '$app/paths';
1212
import { addNotification } from '$lib/stores/notifications';
1313
import CreateProject from '$lib/layout/createProject.svelte';
1414
import { loadAvailableRegions } from '$routes/(console)/regions';
@@ -62,7 +62,12 @@
6262
6363
setTimeout(async () => {
6464
await invalidate(Dependencies.ACCOUNT);
65-
await goto(`${base}/project-${project.region ?? 'default'}-${project.$id}`);
65+
await goto(
66+
resolve('/(console)/project-[region]-[project]', {
67+
region: project.region ?? 'default',
68+
project: project.$id
69+
})
70+
);
6671
showOnboardingAnimation.set(false);
6772
}, 3000);
6873
} catch (e) {

0 commit comments

Comments
 (0)