Skip to content

Commit ceedc8b

Browse files
committed
fix(Erbscheinsantrag): Correct summary component URL
1 parent 88e4313 commit ceedc8b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

app/domains/nachlass/erbschein/shared/components/ElternteilSummary.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ export function ElternteilSummary({
261261
configuration: ArrayConfigClient;
262262
deceasedPersonName?: string;
263263
}>) {
264-
const { url, initialInputUrl } = configuration;
264+
const { url: baseUrl, initialInputUrl } = configuration;
265+
const url = baseUrl.replaceAll("/uebersicht", ""); // remove /uebersicht suffix for edit/add URLs
265266
const elternteile = data as PersonItem[];
266267

267268
return (

app/domains/nachlass/erbschein/shared/components/KinderSummary.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ export function KinderSummary({
214214
category: string;
215215
deceasedPersonName?: string;
216216
}>) {
217-
const { url, initialInputUrl, disableAddButton } = configuration;
217+
const { url: baseUrl, initialInputUrl, disableAddButton } = configuration;
218+
const url = baseUrl.replaceAll("/uebersicht", ""); // remove /uebersicht suffix for edit/add URLs
218219
const items = data as PersonItem[];
219220
const level1Badge = badgeLabel(1, deceasedPersonName);
220221

0 commit comments

Comments
 (0)