Project

General

Profile

Actions

Bug #70718

closed

cObj imageLinkWrap with absRefPrefix and linkParams result in wrong URL

Added by Andreas Allacher over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Content Rendering
Target version:
Start date:
2015-10-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Sicne the change https://git.typo3.org/Packages/TYPO3.CMS.git/commit/23df34dc7bd995a5a7ad5f8ee65cde7c828674b2

This line:
https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php#l1816

$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>


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #69516: IMG_RESOURCE does not prepend absRefPrefixRejected2015-09-03

Actions
Related to TYPO3 Core - Bug #71435: Revert of #69516 - [BUGFIX] IMG_RESOURCE does not prepend absRefPrefixClosed2015-11-09

Actions
Has duplicate TYPO3 Core - Bug #71246: TS: typolink to FAL reference produces double slashClosed2015-11-02

Actions
Actions #1

Updated by Gerrit Code Review over 8 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

Actions #2

Updated by Gerrit Code Review over 8 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

Actions #3

Updated by Gerrit Code Review over 8 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

Actions #4

Updated by Gerrit Code Review over 8 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

Actions #5

Updated by Gerrit Code Review over 8 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

Actions #6

Updated by Gerrit Code Review over 8 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

Actions #7

Updated by Gerrit Code Review over 8 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

Actions #8

Updated by Gerrit Code Review over 8 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

Actions #9

Updated by Gerrit Code Review over 8 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

Actions #10

Updated by Gerrit Code Review over 8 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

Actions #11

Updated by Gerrit Code Review over 8 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

Actions #12

Updated by Gerrit Code Review over 8 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

Actions #13

Updated by Gerrit Code Review over 8 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

Actions #14

Updated by Gerrit Code Review over 8 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

Actions #15

Updated by Gerrit Code Review over 8 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

Actions #16

Updated by Andreas Allacher over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #17

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF