From: Marco Huber Date: Fri, 11 Mar 2016 14:24:53 +0000 (+0100) Subject: [BUGFIX] Don't redirect when you click on "save and view" X-Git-Tag: TYPO3_8-0-0~41 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/205acd098f40bf91d477c80cb5208e7706d79c5a [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 --- 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 {