Shortcut page ignores the configured url target
Each page has a "target" configuration under "behaviour" tab. For both shortcut as default page this is configurable.
The default page works as intended, when _blank configured in target the page generates a link with _blank.
However if the page is then changed to "shortcut" to another page inside the tree, this is ignored. The targeted (shortcut) page configuration is used.
Two options available;
1) Fix the expected workflow for URL target. Force the configured page details with the shortcut id.
2) Remove the url target option in shortcut.
Problem cause by typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php:6049 (in 6.2.14) which override the page configuration to the targeted page before generating the link.
I can fix this, but want to discuss which option is preferred.
#1 Updated by Riccardo De Contardi over 4 years ago
- Status changed from New to Needs Feedback
I am not able to reproduce it in both 6.2.15 and 7.5-dev (latest master); I tried with both a CE headline and using a menu CE... in both cases the target was the one of the shortcut and not of the target page.
can you check it again, or tell me how to reproduce? Thank you!
#5 Updated by Benjamin Serfhos about 4 years ago
The 'bug' can be reproduced with config.typolinkCheckRootline = 1.
The page configuration is overwritten in the check for accross domains.
TYPO3 6.2: typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php:6080
TYPO3 7.6: typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php:6654
#8 Updated by Riccardo De Contardi 11 months ago
I tried also with 10.0.0-dev (latest master) and the result is the same as on my comment 1
please take note that, according to the documentation,
config.typolinkCheckRootline is always enabled from TYPO3 9.5 onwards (https://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Config/Index.html#typolinkcheckrootline)