Project

General

Profile

Actions

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.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2022-02-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

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 open0 closed)

Related to TYPO3 Core - Bug #96658: Frontend preview doesn't work on restricted pages, when any none-live-workspace is selectedUnder Review2022-01-27

Actions
Actions #1

Updated by Oliver Hader almost 3 years ago

  • 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).

Actions #2

Updated by Gerrit Code Review over 2 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73651

Actions #3

Updated by Gerrit Code Review over 2 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73651

Actions #4

Updated by Gerrit Code Review over 1 year ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73651

Actions #5

Updated by Gerrit Code Review over 1 year ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73651

Actions #6

Updated by Gerrit Code Review over 1 year ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73651

Actions #7

Updated by Rémy DANIEL 5 months ago

  • Related to Bug #96658: Frontend preview doesn't work on restricted pages, when any none-live-workspace is selected added
Actions #8

Updated by Rémy DANIEL 5 months ago · Edited

Note: even if the url is generated correctly, the preview of the page will fail, because the page is not yet published.

See #96658

Actions #9

Updated by Gerrit Code Review about 1 month ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/73651

Actions

Also available in: Atom PDF