Actions
Bug #85945
closedAdminPanel: Missing absRefPrefix on cached requests
Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
AdminPanel
Target version:
Start date:
2018-08-23
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
I use only config.absRefPrefix=1
in my TYPO3 instance without setting any baseUrl
. Also, I'm using the extension CoolUri for speaking URLs (without speaking URLs this issue doesn't appear).
This leads to the error that the admin panel is not displayed on cached requests, as the line which sets e.g. the JavaScript resource URL
$frontendPathExtBackend = htmlspecialchars($this->getTypoScriptFrontendController()->absRefPrefix) . ExtensionManagementUtility::siteRelPath('backend');
tries to use the absRefPrefix
set in TypoScriptFrontendController
, which is only set correctly in uncached requests where the page gets generated.
So using the admin panel in development mode works fine while using it in production mode does not because all resources (JS and CSS) are missing the "/" of the absRefPrefix
.
And again: This issue only applies to instances with speaking URLs and without defining a base URL.
Because of the rewrite of the admin panel in v9, I'm not sure if the issue will still exist over there.
Actions