Skip to content

Commit

Permalink
Add redirect URL to stakeholder edit form action (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene authored Dec 23, 2024
2 parents d4a9fa5 + 21ffb69 commit a9e6cba
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts">
import { page } from '$app/stores';
import ModelForm from '$lib/components/Forms/ModelForm.svelte';
import type { PageData } from './$types';
Expand All @@ -7,7 +8,7 @@

<ModelForm
form={data.form}
action="?/updateStakeholder"
action="?/updateStakeholder&next={$page.url.searchParams.get('next')}"
object={data.object}
selectOptions={data.selectOptions}
foreignKeys={data.foreignKeys}
Expand Down

0 comments on commit a9e6cba

Please sign in to comment.