Skip to content

Commit 6a52b4f

Browse files
committed
redirect on add.
1 parent a875705 commit 6a52b4f

File tree

1 file changed

+2
-2
lines changed
  • src/Exceptionless.Web/ClientApp/src/routes/(app)/project/add

1 file changed

+2
-2
lines changed

src/Exceptionless.Web/ClientApp/src/routes/(app)/project/add/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
3232
toast.dismiss(toastId);
3333
try {
34-
await createProject.mutateAsync(form.data);
34+
const { id } = await createProject.mutateAsync(form.data);
3535
toastId = toast.success('Project added successfully');
36-
await goto('/next/project/configure?redirect=true');
36+
await goto(`/next/project/${id}/configure?redirect=true`);
3737
3838
// HACK: This is to prevent sveltekit from stealing focus
3939
result.type = 'failure';

0 commit comments

Comments
 (0)