forked from fa/breadcrumb-the-shire
feat(admin): preserve list return target for back and close actions
This commit is contained in:
@@ -11,6 +11,10 @@ use MintyPHP\Session;
|
||||
$titlebar = is_array($titlebar ?? null) ? $titlebar : [];
|
||||
$title = (string) ($titlebar['title'] ?? '');
|
||||
$backHref = (string) ($titlebar['backHref'] ?? '');
|
||||
$backReturn = requestResolveReturnTarget();
|
||||
if ($backReturn !== '') {
|
||||
$backHref = $backReturn;
|
||||
}
|
||||
$backTitle = (string) ($titlebar['backTitle'] ?? t('Cancel'));
|
||||
$unsavedMessage = (string) ($titlebar['unsavedMessage'] ?? t('You have unsaved changes. Leave without saving?'));
|
||||
$unsavedIndicatorLabel = (string) ($titlebar['unsavedIndicatorLabel'] ?? t('Unsaved changes'));
|
||||
|
||||
Reference in New Issue
Block a user