Bug #96778
open
Workspace Preview Links not working when [starttime] in future
Added by Claus-Peter Eberwein almost 3 years ago.
Updated about 1 month ago.
Description
When a page has a Publish Date [starttime] in the future, generating preview links with the workspaces module "Generate Preview Links"-Button doesn't seem to work correctly.
The preview link either can't be generated at all or it cuts a significant part of the URL.
I tested and reproduced the problem in Version 10 and 11.
Related issues
1 (1 open — 0 closed)
- Status changed from New to Accepted
# preview URL of regular page
http://ip11.anyhost.it/content-examples/text/rich-text?ADMCMD_prev=e26a4cdc850be344dc3ed78545ff9187
# preview URL of page with a future start-time
http://ip11.anyhost.it/?ADMCMD_prev=22acf323a405dc1846b650aca9dc6618
I is obvious that the page path - generated by the routing layer - is ignored for the page having a future start-time.
https://github.com/TYPO3/typo3/blob/8b3e6321e22f80c85e629a553aebb9d0d60cd5f8/typo3/sysext/core/Classes/Routing/PageRouter.php#L254
In PageRouter::generateUri
the resolved $page
from PageRepository
is empty, since regular visibility settings are applied (the page would not be visible under regular circumstances).
- Status changed from Accepted to Under Review
- Related to Bug #96658: Frontend preview doesn't work on restricted pages, when any none-live-workspace is selected added
Note: even if the url is generated correctly, the preview of the page will fail, because the page is not yet published.
See #96658
Also available in: Atom
PDF