diff --git a/typo3/sysext/version/Classes/Hook/PreviewHook.php b/typo3/sysext/version/Classes/Hook/PreviewHook.php index 39487feaf64217f4b1eb96ae075f642f723470a6..1fcf803312eb9ddc06229b13688db9d9d70f547a 100644 --- a/typo3/sysext/version/Classes/Hook/PreviewHook.php +++ b/typo3/sysext/version/Classes/Hook/PreviewHook.php @@ -152,8 +152,8 @@ class PreviewHook implements \TYPO3\CMS\Core\SingletonInterface public function getPreviewConfiguration() { $inputCode = $this->getPreviewInputCode(); - // If inputcode is available, look up the settings - if ($inputCode) { + // If input code is available and shall not be ignored, look up the settings + if ($inputCode && $inputCode !== 'IGNORE') { // "log out" if ($inputCode == 'LOGOUT') { setcookie($this->previewKey, '', 0, GeneralUtility::getIndpEnv('TYPO3_SITE_PATH')); diff --git a/typo3/sysext/workspaces/Classes/Controller/PreviewController.php b/typo3/sysext/workspaces/Classes/Controller/PreviewController.php index 2680ca7844ad7fde7d3ce7255f2fa5d0f7c99d69..41e668535209c947161f7d6c39f2003a7cc8b377 100644 --- a/typo3/sysext/workspaces/Classes/Controller/PreviewController.php +++ b/typo3/sysext/workspaces/Classes/Controller/PreviewController.php @@ -138,11 +138,11 @@ class PreviewController extends AbstractController if (\TYPO3\CMS\Workspaces\Service\WorkspaceService::isNewPage($this->pageId)) { $wsNewPageUri = $uriBuilder->uriFor('newPage', array(), \TYPO3\CMS\Workspaces\Controller\PreviewController::class, 'workspaces', 'web_workspacesworkspaces'); $wsNewPageParams = '&tx_workspaces_web_workspacesworkspaces[controller]=Preview'; - $this->view->assign('liveUrl', $wsSettingsPath . $wsNewPageUri . $wsNewPageParams); + $this->view->assign('liveUrl', $wsSettingsPath . $wsNewPageUri . $wsNewPageParams . '&ADMCMD_prev=IGNORE'); } else { - $this->view->assign('liveUrl', $wsBaseUrl . '&ADMCMD_noBeUser=1'); + $this->view->assign('liveUrl', $wsBaseUrl . '&ADMCMD_noBeUser=1&ADMCMD_prev=IGNORE'); } - $this->view->assign('wsUrl', $wsBaseUrl . '&ADMCMD_view=1&ADMCMD_editIcons=1&ADMCMD_previewWS=' . $GLOBALS['BE_USER']->workspace); + $this->view->assign('wsUrl', $wsBaseUrl . '&ADMCMD_prev=IGNORE&ADMCMD_view=1&ADMCMD_editIcons=1&ADMCMD_previewWS=' . $GLOBALS['BE_USER']->workspace); $this->view->assign('wsSettingsUrl', $wsSettingsUrl); $this->view->assign('backendDomain', GeneralUtility::getIndpEnv('TYPO3_HOST_ONLY')); $splitPreviewTsConfig = BackendUtility::getModTSconfig($this->pageId, 'workspaces.splitPreviewModes');