diff --git a/frontend/src/routes/products/new/+page.server.ts b/frontend/src/routes/products/new/+page.server.ts index 094b0a8..e86b51a 100644 --- a/frontend/src/routes/products/new/+page.server.ts +++ b/frontend/src/routes/products/new/+page.server.ts @@ -190,6 +190,6 @@ export const actions: Actions = { } catch (e) { return fail(500, { error: (e as Error).message }); } - redirect(303, `/products/${product.id}`); + redirect(303, '/products'); } };