[BUGFIX] Fix link for workspace preview 93/27893/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Thu, 27 Feb 2014 11:42:01 +0000 (12:42 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Thu, 27 Feb 2014 11:44:26 +0000 (12:44 +0100)
The absolute link generated for mailings to
workspace editors misses the page id.

The uid has been accidentally removed with
commit for #56359

Resolves: #56375
Releases: 6.2
Change-Id: I521aee2b96c542c27a911ffeab5d9bfffc8b9a46
Reviewed-on: https://review.typo3.org/27893
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/workspaces/Classes/Service/WorkspaceService.php

index b54bb97..872cf04 100644 (file)
@@ -618,7 +618,7 @@ class WorkspaceService implements \TYPO3\CMS\Core\SingletonInterface {
                $viewScript = $backPath . $uriBuilder->uriFor('index', array(), 'Preview', 'workspaces', 'web_workspacesworkspaces') . '&id=';
                GeneralUtility::_GETset($originalM, 'M');
                if ($addDomain === TRUE) {
-                       return BackendUtility::getViewDomain($uid) . $redirect . urlencode($viewScript);
+                       return BackendUtility::getViewDomain($uid) . $redirect . urlencode($viewScript) . $uid;
                } else {
                        return $viewScript;
                }