Project

General

Profile

Actions

Bug #96778

open

Workspace Preview Links not working when [starttime] in future

Added by Claus-Peter Eberwein over 2 years ago. Updated 11 months 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.

Actions #1

Updated by Oliver Hader over 2 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 about 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 almost 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 about 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 11 months 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 11 months 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

Also available in: Atom PDF