Issue Bug Closed

#105979Workspace record preview with route enhancer does not work

Till Hörner 01/22/25, 15:31 updated 12/02/25, 14:27

Description

When trying to preview the detail page of a record in a workspace the preview controller generates urls like:
/detail-page/record-slug/?ADMCMD_prev=LIVE&id=123
/detail-page/record-slug/?ADMCMD_prev=IGNORE&id=123

The extra id query parameter will lead to an early return in the PageRouter (https://github.com/TYPO3/typo3/blob/12.4/typo3/sysext/core/Classes/Routing/PageRouter.php#L108) and not applying the route enhancers.

Unsetting the id query parameter here in the PreviewController before generating the urls resolves the issue

Reviews 3

History 310

  1. Oliver Hader commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-02-10T22:40:08+00:00" > 02/10/25, 22:40 </span>

    Applied in changeset commit:f6b1178d4e8a25704223c3ebd1f0bf9e0f1faddb.

  2. Gerrit Code Review pushed patch set 2 for 12.4 to change 88161 status Resolved Under Review <span data-processor="relativetime" data-value="2025-02-10T22:43:46+00:00" > 02/10/25, 22:43 </span>

  3. Oliver Hader commented and changed status Under Review Resolved <span data-processor="relativetime" data-value="2025-02-10T22:55:08+00:00" > 02/10/25, 22:55 </span>

    Applied in changeset commit:f40c0a148ae56e56fa6172de1fd9c72f1c239973.