Issue Bug Resolved

#110694QR code button (Feature #108720) is missing in the Page module (Content > Layout / web_layout)

David CADU 09/13/26, 18:22 updated 09/13/26, 21:20

Description

Feature #108720 (“QR code button for frontend preview”) states that the QR code button next to the “View” button is available in the following locations:

- Content > Web module (Layout view and Language Comparison view)
- Web > List module
- Web > View module
- Web > Workspaces module

However, in the Page module (Content > Layout, PageLayoutController / route “web_layout”), the QR code button is never rendered. Only the plain “View” button is added to the button bar.

Steps to reproduce:

1. Open the backend of a TYPO3 installation >= 14.2 (reproduced on 14.3.7, also present on branch main).
2. Go to Web > List (records module) on any page with a valid frontend preview URL.
3. Note that a QR code button is displayed next to the “View” button.
4. Go to Content > Layout (Page module) for the same page.

Expected result:
The QR code button should also be displayed next to the “View” button, as announced in the Feature-108720 changelog.

Actual result:
Only the “View” button is displayed. No QR code button is rendered.

Technical analysis:

In typo3/sysext/backend/Classes/Controller/RecordListController.php, the view button is followed by an explicit call building and adding the QR code button:
$view->addButtonToButtonBar(
$this->componentFactory->createViewButton(…),
ButtonBar::BUTTON_POSITION_LEFT,
15
);

// QR Code button
$fallbackUri = $uriBuilder->withRootLine($this->pageContext->rootLine)->buildUri();
$previewUri = $this->componentFactory->getPreviewUrlForQrCode(
$this->pageContext->pageId,
$this->pageContext->getPrimaryLanguageId(),
$fallbackUri
);
if ($previewUri !== null) {
$view->addButtonToButtonBar(
$this->componentFactory->createQrCodeButton($previewUri),
ButtonBar::BUTTON_POSITION_LEFT,
…
);
}

In typo3/sysext/backend/Classes/Controller/PageLayoutController.php, the equivalent method (makeViewButton(), called from addButtonsToButtonBar()) only creates the plain view button and never calls getPreviewUrlForQrCode() / createQrCodeButton():

protected function makeViewButton(): ?ButtonInterface
{
…
return $this->componentFactory->createViewButton($previewUriBuilder
->withRootLine($this->pageContext->rootLine)
->withLanguage($this->pageContext->getPrimaryLanguageId())
->buildDispatcherDataAttributes() ?? []);
}

This looks like an oversight: either the Page module was never updated when #108720 was implemented, or the QR code call was lost during a later refactoring of PageLayoutController. The changelog documentation and the actual behavior are inconsistent for this specific module.

TYPO3 version: 14.3.7

Reviews 3

History 24

  1. Oliver Bartsch commented <span data-processor="relativetime" data-value="2026-09-13T20:32:12+00:00" > 09/13/26, 20:32 </span>

    Hey, thanks for the detailed report. The analysis is correct, but the fix belongs in the documentation rather than in PageLayoutController.

    The QR code button was intentionally removed from the Layout module again with #109249. It had been added there with the intention of moving it into the Quick Actions component later on. Since Quick Actions will not be part of v14 LTS, the button was dropped again to avoid overloading the module button bar.

    What was missed is updating the changelog entry, so the documentation and the actual behaviour drifted apart.

    The functionality itself is still available for a page via “Show QR code” in the page context menu (page tree and record listings), and as a button in the Records, Preview and Publish modules.

    A patch correcting the changelog entry is available on Gerrit.

    Best, Oli

  2. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-13T21:20:13+00:00" > 09/13/26, 21:20 </span>

    Applied in changeset commit:5d208ebf25523c5d05dd90f0de3de8fafc5ffe6c.