-
Benni Mack authored
The PageLinkBuilder now separates out into generating links for pages with site configuration, and without site configuration (= as before). The new link mechanism does not rely on previous hooks and options like config.absRefPrefix which are not necessary for URLs as they are always absolute. A new TypoScript option "typolink.language" is introduced. If not set, it is set to "current", and allows to link across pagetrees to a given site, or render a language menu without having to use "&L=" as additional query parameter. ("current" is the current language and default) is used to also allow to explicitly link to a different language if this language was configured for the site configuration for the site. As for the linking process: - typolink.forceAbsoluteUrl is used to generate the full URL to a target page - typolink.forceAbsoluteUrl.scheme is only applicable if the site base of the target does not explicitly define a scheme - If you link to a different page tree or to a different host/scheme, it is always treated as absolute. On top: If you link across page trees, the link is treated as external (extTarget is used). The next steps are to create tests and incorporate config.linkVars into this process. Resolves: #86048 Releases: master Change-Id: I01b2b43efafa23ce0d256bdcd0feb35756fbe1d5 Reviewed-on: https://review.typo3.org/58063 Reviewed-by: Oliver Hader <oliver.hader@typo3.org> Tested-by: Oliver Hader <oliver.hader@typo3.org> Reviewed-by: Susanne Moog <susanne.moog@typo3.org> Tested-by: Susanne Moog <susanne.moog@typo3.org> Reviewed-by: Benni Mack <benni@typo3.org> Tested-by: Benni Mack <benni@typo3.org> Tested-by: TYPO3com <no-reply@typo3.com>
7f0174be