Skip to content

Commit 48e79a3

Browse files
authored
Update MiniSummaryPageController.ts
1 parent 1aa17ac commit 48e79a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runner/src/server/plugins/engine/pageControllers/MiniSummaryPageController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export class MiniSummaryPageController extends PageController {
2020
: summary.details[0];
2121

2222
const items = sectionDetails.items.map((item) => {
23-
const itemURL = item.url.split("%2F").slice(0, -1).join("%2F");
24-
return { ...item, url: `${itemURL}%2F${this.path.substring(1)}` };
23+
const returnURL = encodeURIComponent(`/${model.basePath}${this.path}`);
24+
return { ...item, url: `${item.pageId}?returnTo=${returnURL}` };
2525
});
2626
this.details = [{ items }];
2727

0 commit comments

Comments
 (0)