--- t3lib/class.t3lib_befunc.orig.php 2010-07-29 16:29:13.000000000 +0200 +++ t3lib/class.t3lib_befunc.php 2010-07-30 10:54:01.000000000 +0200 @@ -2619,8 +2619,8 @@ */ public static function viewOnClick($id, $backPath = '', $rootLine = '', $anchor = '', $altUrl = '', $addGetVars = '', $switchFocus = TRUE) { - $viewScriptPreviewEnabled = '/' . TYPO3_mainDir . 'mod/user/ws/wsol_preview.php?id='; - $viewScriptPreviewDisabled = '/index.php?id='; + $viewScriptPreviewDisabled = '/' . TYPO3_mainDir . 'mod/user/ws/wsol_preview.php?id='; + $viewScriptPreviewEnabled = '/index.php?id='; if ($altUrl) { $viewScriptPreviewEnabled = $viewScriptPreviewDisabled = $altUrl; } @@ -2666,7 +2666,7 @@ $urlPreviewEnabled = $viewDomain . $viewScriptPreviewEnabled . $id . $addGetVars . $anchor; $urlPreviewDisabled = $viewDomain . $viewScriptPreviewDisabled . $id . $addGetVars . $anchor; - return "var previewWin=window.open(top.TYPO3.configuration.inWorkspace !== 0 && top.TYPO3.configuration.workspaceFrontendPreviewEnabled ?'" . + return "var previewWin=window.open((top.TYPO3.configuration.inWorkspace == 0 || (top.TYPO3.configuration.inWorkspace !== 0 && top.TYPO3.configuration.workspaceFrontendPreviewEnabled)) ?'" . $urlPreviewEnabled . "':'" . $urlPreviewDisabled . "','newTYPO3frontendWindow');" . ( $switchFocus ? 'previewWin.focus();' : ''); }