Bug #95493
closedTS layoutKey adds double slashes to srcset
100%
Description
An image output with typoscript object of type IMAGE and setting a layoutKey generates double slashes to the srcset URLs (TYPO3 11.5). This did not happen in TYPO3 11.4 and below.
foo = IMAGE
foo {
file {
import.data = file:current:uid
treatIdAsReference = 1
}
layoutKey = srcset-default
layout {
srcset-default {
element (
<img width="###WIDTH###" height="###HEIGHT###" src="###SRC###" srcset="###SOURCECOLLECTION###" sizes="(max-width: ###WIDTH###px) 100vw, ###WIDTH###px" ###PARAMS### ###ALTPARAMS### ###SELFCLOSINGTAGSLASH###>
)
source = ###SRC### ###WIDTH###w###SRCAPPEND###
}
}
sourceCollection {
normal {
srcappend = ,
}
hdpi {
pixelDensity = 2
quality = 70
}
}
}
Output:
<img width="300" height="200" src="/foobar.jpg" srcset="//foobar.jpg 300w,//foobar2.jpg 600w" sizes="(max-width: 300px) 100vw, 300px" alt="">
Updated by Benni Mack about 3 years ago
- Target version changed from 11 LTS to Candidate for patchlevel
Updated by Gerrit Code Review about 3 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 https://review.typo3.org/c/Packages/TYPO3.CMS/+/71508
Updated by Gerrit Code Review about 3 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71508
Updated by Gerrit Code Review about 3 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71508
Updated by Gerrit Code Review about 3 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71508
Updated by Gerrit Code Review about 3 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/71508
Updated by Gerrit Code Review about 3 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/c/Packages/TYPO3.CMS/+/71508
Updated by Anonymous about 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset a3ec0dfd5de6ca0223260093d9ececaed48e6b9d.