#108473TYPO3\CMS\Backend\Routing\UriBuilder::buildUriFromRoute doesn't respect if $GLOBALS['TYPO3_CONF_VARS']['BE']['entryPoint'] contains a domain
Description
In case if $GLOBALS[‘TYPO3_CONF_VARS’][‘BE’][‘entryPoint’] contains a domain to make the backend accessible via an own domain this is lost in the link generation.
Precondition to understand the problem:
- the backend is accessible via https://backend.dev14.ddev.site/
- the frontend is accessible via https://www.dev14.ddev.site/
- typo3/cms-adminpanel is visible in the frontend.
When I want to open the adminpanel and ajax request to /ajax/adminpanel/toggleActiveState?token=f99d26618a037279563e9dbf02c5a936a16eff2f36801e1245788b1db0a530de is made.
This is answered with a 404 error, because /ajax/adminpanel/toggleActiveState is not available. This is a backend ajax route that is missing the domain of the backend.
The url generated for the ajax route is generated with TYPO3\CMS\Backend\Routing\UriBuilder::buildUriFromRoute which calls UriBuilder::buildUri
In buildUri the $requestContext is gathered via TYPO3\CMS\Core\Routing\RequestContextFactory::fromBackendRequest which calls TYPO3\CMS\Core\Routing\BackendEntryPointResolver::getPathFromRequest.
In getPathFromRequest the correct $entryPoint is found BUT only the path of that is used.
I think it would be better if RequestContextFactory::fromBackendRequest would use BackendEntryPointResolver::getUriFromRequest instead. Which would result in https://backend.dev14.ddev.site/ajax/adminpanel/toggleActiveState?token=f99d26618a037279563e9dbf02c5a936a16eff2f36801e1245788b1db0a530de with the host instead of only resulting in /ajax/adminpanel/toggleActiveState?token=f99d26618a037279563e9dbf02c5a936a16eff2f36801e1245788b1db0a530de without the host.
Reviews 2
Related issues 1
History 29
-
Gerrit Code Review pushed patch set 1 for main to change 92106 status
NewUnder Review <span data-processor="relativetime" data-value="2025-12-11T19:57:47+00:00" > 12/11/25, 19:57 </span> -
Gerrit Code Review pushed patch set 2 for main to change 92106 <span data-processor="relativetime" data-value="2025-12-11T20:15:50+00:00" > 12/11/25, 20:15 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 92106 <span data-processor="relativetime" data-value="2026-02-27T17:21:59+00:00" > 02/27/26, 17:21 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 92106 <span data-processor="relativetime" data-value="2026-03-01T00:09:14+00:00" > 03/01/26, 00:09 </span>
-
Moritz Ngo changed Duplicated by #108845 <span data-processor="relativetime" data-value="2026-03-10T08:57:06+00:00" > 03/10/26, 08:57 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 92106 <span data-processor="relativetime" data-value="2026-04-22T07:14:54+00:00" > 04/22/26, 07:14 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 92106 <span data-processor="relativetime" data-value="2026-04-28T15:32:41+00:00" > 04/28/26, 15:32 </span>
-
Gerrit Code Review pushed patch set 7 for main to change 92106 <span data-processor="relativetime" data-value="2026-11-09T09:08:20+00:00" > 11/09/26, 09:08 </span>
-
Oliver Bartsch changed Related to #111380 <span data-processor="relativetime" data-value="2026-11-09T13:08:37+00:00" > 11/09/26, 13:08 </span>