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

handle absRefPrefix for image rendering #19

Open
hannesbochmann opened this issue Jul 24, 2018 · 0 comments · May be fixed by #20
Open

handle absRefPrefix for image rendering #19

hannesbochmann opened this issue Jul 24, 2018 · 0 comments · May be fixed by #20

Comments

@hannesbochmann
Copy link

If I have a RTE field which content is used for example in an external JS file (respectively in a variable inside of that file), all image links have relative paths even when absRefPrefix is configured. For RTE fields which are used in normal page content this is no problem as TypoScriptFrontendController::setAbsRefPrefix() takes care of prefixng the links with the absRefPrefix. For my example this doesn't work as their content won't be parsed through TypoScriptFrontendController.

If TYPO3\CMS\Extbase\Service\ImageService::getImageUri() would be used instead of getPublicUrl to get the image URL in ImageRenderingController there would be no problem as the Image Service takes care of that. That's how it's done in the fluid Image ViewHelper for example, too.

hannesbochmann added a commit to DMKEBUSINESSGMBH/rtehtmlarea that referenced this issue Jul 24, 2018
hannesbochmann added a commit to DMKEBUSINESSGMBH/rtehtmlarea that referenced this issue Jul 24, 2018
@hannesbochmann hannesbochmann linked a pull request Jul 24, 2018 that will close this issue
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 a pull request may close this issue.

1 participant