#96658Frontend preview doesn't work on restricted pages, when any none-live-workspace is selected
Description
The frontend-preview of restricted pages doesn’t work, when any none-live-workspace is selected.
*An example:*
The TYPO3-page ‘mytypo3page’ (UID=272204) is restricted by the fe_groups-record with UID 4884.
When i click the frontend-preview-button in the TYPO3-backend-module ‘page’ (in LIVE-Workspace), than TYPO3 is calling the URL https://mytypo3domain.com/mytypo3page?ADMCMD_simUser=4884 and the Preview works.
When i click the frontend-preview-button in the TYPO3-backend-module ‘page’ (in any NONE-LIVE-Workspace – e.g. my ‘test-workspace’), than TYPO3 is calling the URL https://mytypo3domain.com/typo3/workspace/preview-control/?token=[token]&id=272204.
The Response of that URL calls now two URLs:
– /mytypo3page?ADMCMD_prev=LIVE&id=272204
– /mytypo3page?ADMCMD_prev=IGNORE&id=272204
Both of that URL’s produces a 403 HTTP-StatusCode – with message ‘ID was not an accessible page’ in PageErrorHandlerInterface.
When i add the String ‘&ADMCMD_simUser=4964’ on the URL https://mytypo3domain.com/typo3/workspace/preview-control/?token=[token]&id=272204 than the preview works fine.
So, in short:
This (current) URL doesn’t work on restricted pages: https://mytypo3domain.com/typo3/workspace/preview-control/?token=[token]&id=272204
This URL does work on restricted pages: https://mytypo3domain.com/typo3/workspace/preview-control/?token=[token]&id=272204&ADMCMD_simUser=4964
Reviews 8
- 13.4 92453Revert "[BUGFIX] Consider starttime/endtime for versioned records"
- main 92424Revert "[BUGFIX] Consider starttime/endtime for versioned records"
- main 90782[BUGFIX] Consider starttime/endtime for versioned records
- 13.4 91074[BUGFIX] Consider starttime/endtime for versioned records
- main 73651[BUGFIX] Workspace preview links with page starttime
- 12.4 88809[BUGFIX] ADMCMD_* params missing for split preview URLs
- 13.4 88808[BUGFIX] ADMCMD_* params missing for split preview URLs
- main 86257[BUGFIX] ADMCMD_* params missing for split preview URLs
Related issues 5
- Bug #96778Workspace Preview Links not working when [starttime] in future
- Bug #105389Workspace typolink to translated page does not work
- Bug #105567Frontend preview not working on restricted pages for normal editors
- Task #108718Revert: Consider starttime/endtime for versioned records
- Bug #108814Workspace preview ignores content element hidden state when page is hidden in LIVE