Issue Bug Accepted Orphaned

#96778Workspace Preview Links not working when [starttime] in future

Claus-Peter Eberwein 02/08/22, 07:48 updated 01/22/26, 08:45

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.

Reviews 3

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". The changes above were merged or abandoned: read them before you start. How to create a patch

Commit message
[BUGFIX] Workspace Preview Links not working when [starttime] in future Resolves: #96778 Releases: main

History 1327

Show 12 earlier messages
  1. Oliver Hader commented and changed status New Accepted <span data-processor="relativetime" data-value="2022-02-08T11:34:19+00:00" > 02/08/22, 11:34 </span>

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

  2. Gerrit Code Review pushed patch set 1 for main to change 73651 status Accepted Under Review <span data-processor="relativetime" data-value="2022-02-23T08:53:45+00:00" > 02/23/22, 08:53 </span>

  1. Rémy DANIEL commented <span data-processor="relativetime" data-value="2024-06-14T15:01:26+00:00" > 06/14/24, 15:01 </span>

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

    See #96658

  2. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-10-15T10:15:09+00:00" > 10/15/25, 10:15 </span>

    Applied in changeset commit:8ff76eab37f26fd09dc9dd636bc6fd09fdf4b504.

  3. Garvin Hicking commented and changed status Closed Accepted TYPO3 Version 11 13 <span data-processor="relativetime" data-value="2026-01-22T08:45:00+00:00" > 01/22/26, 08:45 </span>

    Re-opened due to reverting the bugfix change, since it has issues.