[BUGFIX] Path to iframe for listing changes in WS is wrong 91/38491/2
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 5 Apr 2015 12:59:27 +0000 (14:59 +0200)
committerAndreas Fernandez <andreas.fernandez@aspedia.de>
Sun, 5 Apr 2015 16:12:27 +0000 (18:12 +0200)
Opening the preview of a single element from a workspace (meaning
click the eye icon in workspace module) opens the frontend preview,
where you can choose from visual changes and list view in the header.
Choosing the list view tab led to a file not found error due to double
typo3 in the iframe url.

Change-Id: Ie1ae3d5574359a471b844b9215449e02ef3a3f39
Resolves: #66281
Relates: #66052
Releases: master
Reviewed-on: http://review.typo3.org/38491
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
typo3/sysext/workspaces/Classes/Controller/PreviewController.php

index c7f93e5..f239c02 100644 (file)
@@ -109,7 +109,7 @@ class PreviewController extends AbstractController {
                }
                /** @var $uriBuilder \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder */
                $uriBuilder = $this->objectManager->get(\TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::class);
-               $wsSettingsPath = GeneralUtility::getIndpEnv('TYPO3_SITE_URL') . 'typo3/';
+               $wsSettingsPath = GeneralUtility::getIndpEnv('TYPO3_SITE_URL');
                $wsSettingsUri = $uriBuilder->uriFor('singleIndex', array(), \TYPO3\CMS\Workspaces\Controller\ReviewController::class, 'workspaces', 'web_workspacesworkspaces');
                $wsSettingsParams = '&tx_workspaces_web_workspacesworkspaces[controller]=Review';
                $wsSettingsUrl = $wsSettingsPath . $wsSettingsUri . $wsSettingsParams;