From 205acd098f40bf91d477c80cb5208e7706d79c5a Mon Sep 17 00:00:00 2001 From: Marco Huber Date: Fri, 11 Mar 2016 15:24:53 +0100 Subject: [PATCH 1/1] [BUGFIX] Don't redirect when you click on "save and view" Some more page types which should be opened directly and not redirect to the rootpage if you click on "Save and view". Resolves: #75020 Related: #66370 Releases: master, 7.6 Change-Id: I278a917c69565e8fe1e175901df01c4cccf9ef98 Reviewed-on: https://review.typo3.org/47195 Reviewed-by: Andreas Fernandez Tested-by: Andreas Fernandez Reviewed-by: Frank Naegler Tested-by: Frank Naegler --- .../backend/Classes/Controller/EditDocumentController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/backend/Classes/Controller/EditDocumentController.php b/typo3/sysext/backend/Classes/Controller/EditDocumentController.php index 5345df10ae99..a6a3fbfc06e1 100644 --- a/typo3/sysext/backend/Classes/Controller/EditDocumentController.php +++ b/typo3/sysext/backend/Classes/Controller/EditDocumentController.php @@ -830,7 +830,11 @@ class EditDocumentController extends AbstractModule $rootPageData = null; $rootLine = BackendUtility::BEgetRootLine($currentPageId); $currentPage = reset($rootLine); - if ((int)$currentPage['doktype'] === PageRepository::DOKTYPE_DEFAULT) { + if ((int)$currentPage['doktype'] === PageRepository::DOKTYPE_DEFAULT + || (int)$currentPage['doktype'] === PageRepository::DOKTYPE_LINK + || (int)$currentPage['doktype'] === PageRepository::DOKTYPE_SHORTCUT + || (int)$currentPage['doktype'] === PageRepository::DOKTYPE_MOUNTPOINT + ) { // try the current page $previewPageId = $currentPageId; } else { -- 2.20.1