Issue Bug Closed

#19125No Language in translated Workspacepages in Previewlink

Schmidt Timo 07/18/08, 16:30 updated 02/14/11, 01:18

Description

If you view the preview of a translated page in a workspace and generate a Previewlink, the link does not link to the correct Languageversion of the page.

Solution:

1. Add the language Variable in “/typo3/mod/user/ws/wsol_preview.php” to the versionMod Frame (Line 143)

‘versionMod’ => ../../../sysext/version/cm1/index.php?id=’.$pageId.’&L=’.$language.’&diffOnly=1’

2. Add the language to the preview url (line 677):

$params=‘id=’.$this->id.’&ADMCMD_view=1&ADMCMD_editIcons=1&ADMCMD_previewWS=’.$GLOBALS[‘BE_USER’]->workspace;
$language = intval(t3lib_div::_GP(‘L’));
if($language != 0){ $params .= ‘&L=’.$language;}

(issue imported from #M9003)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.