typo3-realurl
typo3-realurl copied to clipboard
Invalid url with shortcut in subdirectory
When using realurl in a TYPO3 instance inside of a subdirectory of the document root, the rendered link of a page with doktype shortcut(=4) to the page root gets the following:
<absRefPrefix><directory Structure to TYPO3 instance relative to document root>
Every other page is rendered correctly.
Example setup:
- TYPO3 8.7.10
- realurl @ current development branch on github
- TYPO3 installed into /pfdl/cms/ inside the document root
- config.absRefPrefix set to "auto" (gets
/pfdl/cms/
in current example) - pagetree:
Page with uid 3 is of type shortcut with target page 1.
Rendering the menu as cObject FLUIDTEMPLATE and TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
with following settings:
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
10 {
special = directory
special.value = 1
levels = 2
as = menuEntries
}
}
In the fluidtemplate, fluid variable menuEntries.[n].link
got /pfdl/cms/pfdl/cms/
as value. Should be /pfdl/cms/
.
If is set a static absRefPrefix to /abc/
, the link is /abc/pfdl/cms/
.
RealURL does not work well when you install TYPO3 in a subdirectory. Currently there are no plans to fix that because this is a rare case.