Project

General

Profile

Actions

Bug #96588

open

URI to backend module can only be generated from BE context

Added by Philipp Kitzberger over 2 years ago. Updated over 1 year ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-01-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

It seems not possible to create absolute links from the frontend to a certain backend module, is it?

Use case might be a mail triggered by a frontend user action sent to an admin, so they log into the TYPO3 backend to check that users generated input.

I've tried both ways, fluid viewhelper and php, but the resulting URI is always missing the /typo3/ slug!

fluid viewhelper: <f:be.link route="web_layout">click me</f:be.link>

php:

$uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
$uri = $uriBuilder->buildUriFromRoute('web_layout', ['id' => $pageId]);

https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/BackendRouting/Index.html#generating-backend-urls

Actions

Also available in: Atom PDF