fix(discovery): correct redirect path after Accept

The accept action redirected to /admin/maerkte/<id>/edit, but the
route is /admin/maerkte/[id]/bearbeiten — every other admin link
uses the German segment. Reviewers hit a 404 after every Accept.
This commit is contained in:
2026-04-24 13:59:25 +02:00
parent 8528af8492
commit 20055acd2e

View File

@@ -167,7 +167,7 @@ export const actions: Actions = {
}).catch(() => {
// Silent: the edit page shows a toast if research hasn't completed.
});
redirect(303, `/admin/maerkte/${res.data.edition_id}/edit`);
redirect(303, `/admin/maerkte/${res.data.edition_id}/bearbeiten`);
} catch (err) {
if (err instanceof Response || (err as { status?: number })?.status === 303) throw err;
const message = err instanceof Error ? err.message : 'Accept fehlgeschlagen.';