[BUGFIX] Allow arbitrary protocols in new LinkService
Since TYPO3 v8 it is not possible to simply create a link to "tel:+491727144385" anymore, which was possible in TYPO3 v7. Instead an exception is thrown as the "toString()" method cannot handle legacy links which have no specific type. The patch checks for a "url" attribute allowing to represent a URL and to render a link via typolink. Resolves: #80217 Releases: master, 8.7 Change-Id: I617e280295b4789a8c295f5ee21463a643e58afc Reviewed-on: https://review.typo3.org/52617 Tested-by:TYPO3com <no-reply@typo3.com> Reviewed-by:
Mattias Nilsson <tollepjaer@gmail.com> Tested-by:
Mattias Nilsson <tollepjaer@gmail.com> Reviewed-by:
Sascha Egerer <sascha@sascha-egerer.de> Tested-by:
Mona Muzaffar <mona.muzaffar@gmx.de> Reviewed-by:
Wouter Wolters <typo3@wouterwolters.nl> Tested-by:
Wouter Wolters <typo3@wouterwolters.nl>
Showing
- typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php 2 additions, 3 deletions...core/Classes/LinkHandling/LegacyLinkNotationConverter.php
- typo3/sysext/core/Classes/LinkHandling/LinkService.php 4 additions, 0 deletionstypo3/sysext/core/Classes/LinkHandling/LinkService.php
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 3 additions, 1 deletion.../frontend/Classes/ContentObject/ContentObjectRenderer.php
Please register or sign in to comment