[FEATURE] Add TypoScript option to create absolute links and resource/image URLs
A new TypoScript option config.forceAbsoluteUrls = 1 is added, which allows to create ANY link to be absolute (pages + files etc), as well as all images, included assets to have a full qualified domain name. Setting this option will override any option in config.absRefPrefix and any typolink.forceAbsoluteUrl = 0 options. The main benefit is to create a fully static version of the frontend. Ideally, config.absRefPrefix can then be phased out and the config.absRefPrefix option should be removed in favor of this new feature at a later stage. Resolves: #87919 Releases: main Change-Id: Ibbd3084a978c8a2a4ff803f9aef276679a1658f3 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76463 Tested-by:core-ci <typo3@b13.com> Tested-by:
Susanne Moog <look@susi.dev> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Susanne Moog <look@susi.dev> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com>
Showing
- typo3/sysext/core/Documentation/Changelog/12.1/Feature-87919-AllowGenerationOfAbsoluteURLsCompletely.rst 27 additions, 0 deletions...Feature-87919-AllowGenerationOfAbsoluteURLsCompletely.rst
- typo3/sysext/core/Tests/Functional/Fixtures/pages.csv 10 additions, 10 deletionstypo3/sysext/core/Tests/Functional/Fixtures/pages.csv
- typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php 6 additions, 0 deletions...ntend/Classes/Controller/TypoScriptFrontendController.php
- typo3/sysext/frontend/Classes/Typolink/AbstractTypolinkBuilder.php 8 additions, 2 deletions...ext/frontend/Classes/Typolink/AbstractTypolinkBuilder.php
- typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php 6 additions, 1 deletiontypo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php
- typo3/sysext/frontend/Tests/Functional/Rendering/AbsoluteUriPrefixRenderingTest.php 303 additions, 0 deletions...s/Functional/Rendering/AbsoluteUriPrefixRenderingTest.php
- typo3/sysext/frontend/Tests/Functional/Rendering/Fixtures/AbsoluteUriPrefixRenderingTest.typoscript 63 additions, 0 deletions...dering/Fixtures/AbsoluteUriPrefixRenderingTest.typoscript
Please register or sign in to comment