Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Fixed Image-URL in SourceViewHelper after TYPO3 12 Update #1871

Merged

Conversation

stex2
Copy link
Contributor

@stex2 stex2 commented Aug 7, 2023

In TYPO3 12, there is a change in the behavior of the ContentObjectRenderer. The array key 3 of the info-array returned by getImgResource() does not longer contain the relative image path for processed images. Instead, the absolute path is now returned. See https://forge.typo3.org/issues/95379

As a result, the absolute image path is used in the SourceViewHelper and the images on the page are broken. To fix this, i added a check if the image is processed. If so, the relative URL is fetched from the ProcessedFile-object. The rest of the behavior remains the same.

@NamelessCoder NamelessCoder merged commit aa0d048 into FluidTYPO3:development Aug 8, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants