Issue Bug Closed

#102585Workspace preview link generated by PageTree "show" button contains "&" character

Riccardo De Contardi 12/02/23, 15:14 updated 12/19/23, 11:06

Description

Prerequisites

  • TYPO3 12 (I tested it on 12.4.8)
  • An additional “Draft” workspace beside the usual “LIVE” workspace

Steps to reproduce

  • Go to the “Draft” workspace
  • Go to a page (any page) > page module
  • If you use the “preview” page button on the header, it opens the url:
https://yoursite.com/typo3/workspace/preview-control/?token=<SOME_TOKEN>&id=<ID_OF_THE_PAGE>

BUT if you instead use the context menu of the pagetree (left click> show) the url is

https://yoursite.com/typo3/workspace/preview-control/?token=<SOME_TOKEN>&amp;id=<ID_OF_THE_PAGE>
with
 &amp; 

instead of

&

There should not be difference; on my Ddev installation both links work the same but I’ve been reported that it could lead to an error like “503 (The link to the page with ID “0” could not be generated: No site found in root line of page 0)”

The issue seems not to affect TYPO3 v.11 or v.13, just v.12

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.