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

[4.x] Glide tag - make absolute url transform apply only to current site url #8901

Closed
wants to merge 1 commit into from

Conversation

godismyjudge95
Copy link
Contributor

This resolves #8637

The absolute URL transformation should only happen if the asset url is the current site. Otherwise non-transformed assets will break when storing images on S3 or CDN storage providers.

@godismyjudge95
Copy link
Contributor Author

hmmm maybe the tests are failing if the current site is not being set in the tests?

@jasonvarga
Copy link
Member

When the $url is relative, it will never start with the absolute URL of the site and will not pass your new condition. That's why the tests are now failing.

I think there must be a different angle to solve your 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 this pull request may close these issues.

Using glide with S3 asset storage returns wrong url for SVG
2 participants