Bug #70718
closedcObj imageLinkWrap with absRefPrefix and linkParams result in wrong URL
100%
Description
Sicne the change https://git.typo3.org/Packages/TYPO3.CMS.git/commit/23df34dc7bd995a5a7ad5f8ee65cde7c828674b2
$url = $this->cObjGetSingle('IMG_RESOURCE', $imgResourceConf);
results in the absRefPrefix to be prepended which will be an issue when calling this line:
https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php#l1859
$string = $this->typoLink($string, $conf['linkParams.']);
As typolink will again prepend the absRefPrefix, this is e.g. an issue with the URL attribute in lightbox when using css_styled_content
To reproduce use the following TypoScript code (make sure the corresponding image exists):
page = PAGE page.config.absRefPrefix = / page.10 = IMAGE page.10 { file = fileadmin/test.png file.width = 30 imageLinkWrap = 1 imageLinkWrap { enable = 1 directImageLink = 1 } }
Results in:
<a href="//fileadmin/test.png"> <img width="30" height="11" border="0" longdesc="" alt="" src="/fileadmin/_processed_/csm_test_5e097abd70.png" style="width: 30px; height: 11px;"> </a>
Updated by Gerrit Code Review almost 9 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/44064
Updated by Gerrit Code Review almost 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/44064
Updated by Gerrit Code Review almost 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/44064
Updated by Gerrit Code Review almost 9 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/44064
Updated by Gerrit Code Review almost 9 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/44064
Updated by Gerrit Code Review almost 9 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/44064
Updated by Gerrit Code Review almost 9 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/44064
Updated by Gerrit Code Review almost 9 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44064
Updated by Gerrit Code Review almost 9 years ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44064
Updated by Gerrit Code Review almost 9 years ago
Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44064
Updated by Gerrit Code Review almost 9 years ago
Patch set 11 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44064
Updated by Gerrit Code Review almost 9 years ago
Patch set 12 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44064
Updated by Gerrit Code Review almost 9 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44631
Updated by Gerrit Code Review almost 9 years ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44632
Updated by Gerrit Code Review almost 9 years ago
Patch set 2 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44632
Updated by Andreas Allacher almost 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset a6809e87863c81e52250a00eb1758a1eb59d8a85.
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed