[BUGFIX] Correct route to workspace module 79/54279/3
authorSusanne Moog <susanne.moog@typo3.com>
Wed, 4 Oct 2017 07:32:31 +0000 (09:32 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Wed, 4 Oct 2017 09:15:19 +0000 (11:15 +0200)
Use correct route for generating split preview links
in WorkspaceService

Change-Id: I5cf83c435278b9c83c31e829f28f72dc61410da2
Resolves: #82663
Releases: master
Reviewed-on: https://review.typo3.org/54279
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/workspaces/Classes/Service/WorkspaceService.php

index 5a12768..6ca08ac 100644 (file)
@@ -15,7 +15,6 @@ namespace TYPO3\CMS\Workspaces\Service;
  */
 
 use TYPO3\CMS\Backend\Configuration\TranslationConfigurationProvider;
-use TYPO3\CMS\Backend\Routing\UriBuilder;
 use TYPO3\CMS\Backend\Utility\BackendUtility;
 use TYPO3\CMS\Core\Database\Connection;
 use TYPO3\CMS\Core\Database\ConnectionPool;
@@ -864,7 +863,7 @@ class WorkspaceService implements SingletonInterface
         $uriBuilder = $this->getObjectManager()->get(\TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::class);
         $redirect = 'index.php?redirect_url=';
         $viewScript = $uriBuilder
-            ->setArguments(['route' => GeneralUtility::makeInstance(UriBuilder::class)->buildUriFromModule('web_WorkspacesWorkspaces')])
+            ->setArguments(['route' => '/web/WorkspacesWorkspaces/'])
             ->uriFor('index', [], 'Preview', 'workspaces', 'web_workspacesworkspaces') . '&id=';
         if ($addDomain === true) {
             return BackendUtility::getViewDomain($uid) . $redirect . urlencode($viewScript) . $uid;