diff --git a/src/routes/(app)/admin/functions/create/+page.svelte b/src/routes/(app)/admin/functions/create/+page.svelte index 1cfd9b873..c3ac6cb06 100644 --- a/src/routes/(app)/admin/functions/create/+page.svelte +++ b/src/routes/(app)/admin/functions/create/+page.svelte @@ -49,7 +49,7 @@ functions.set(await getFunctions(localStorage.token)); models.set(await getModels(localStorage.token)); - await goto('/workspace/functions'); + await goto('/admin/functions'); } }; diff --git a/src/routes/(app)/admin/functions/edit/+page.svelte b/src/routes/(app)/admin/functions/edit/+page.svelte index 49052514f..26989f9b1 100644 --- a/src/routes/(app)/admin/functions/edit/+page.svelte +++ b/src/routes/(app)/admin/functions/edit/+page.svelte @@ -59,7 +59,7 @@ if (id) { func = await getFunctionById(localStorage.token, id).catch((error) => { toast.error(error); - goto('/workspace/functions'); + goto('/admin/functions'); return null; });