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

Adds support for external image urls #1470

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open

Adds support for external image urls #1470

wants to merge 1 commit into from

Conversation

maechler
Copy link
Contributor

@maechler maechler commented Apr 3, 2018

I finally managed to create a pull request. This pull request fixes #1439.

What I did is add a check whether we are dealing with an already fully qualified URI or not (if (isset($parsedSrc['host']))). The else part is the function as it was before. This implementation is inspired by what TYPO3 Core does: https://github.com/TYPO3-CMS/extbase/blob/96fffc2b245dc29a78bcb06a64cdb9d138f169c9/Classes/Service/ImageService.php#L84-L103

This of course does not add full support for FAL (e.g. no image processing), but it enables fully qualified URIs to be used in frontend and backend.

Copy link
Contributor

@macjohnny macjohnny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

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.

v:uri.image and v:image do prefix external image urls with domain of TYPO3 site
2 participants