Bug #85498
closedWrong URL for "view" when in workspace with TYPO3 in subdirectory
0%
Description
I have TYPO3 installed in a subdirectory (so in domain.com/directory). If I select a workspace and try to view a page using the "View" button from the record of "Show" from the page tree menu the URL is wrong. It adds the subdirectory to the URL twice (so domain.com/directory/directory).
I tested this with a current installation from master in the following way:
- Install TYPO3 in a subdirectory using The official Introduction Package preconfigured distribution
- Activate workspaces extension
- Go to the workspace
- Select "Show" in the page tree menu on a page
Updated by Rudy Gnodde over 6 years ago
This happens because in EXT:workspaces\Classes\Preview\PreviewUriBuilder.php in method buildUriForWorkspaceSplitPreview it returns $viewScript with the directory. In EXT:backend\Classes\Utility\BackendUtility.php at the end of method createPreviewUrl, it prepends $viewDomain, which uses TYPO3_SITE_URL which also includes the directory.
Updated by Benni Mack over 5 years ago
- Status changed from New to Needs Feedback
Can you recheck this with 9.5.5 as we've fixed the preview linsk back then?
Updated by Rudy Gnodde over 5 years ago
It works correctly in TYPO3 9.5.5, so it seems to be fixed.