Skip to content

[6.x] Fix Glide tag with absolute asset URLs - #15918

Merged
duncanmcclean merged 1 commit into
6.xfrom
13388
Nov 16, 2026
Merged

duncanmcclean merged 1 commit into
6.xfrom
13388

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes an issue where passing an asset's URL to the Glide tag (eg. {{ glide:image:url }}) would treat the image as an external URL when the asset container lives on a disk with an absolute URL, like S3.

This was happening because the Glide tag returned absolute URLs as-is, without checking whether they belonged to an asset container. The image would be manipulated via the /img/http/... route, rather than as an asset.

This PR fixes it by attempting to find an asset for absolute URLs first, falling back to treating them as external URLs.

Fixes #13388

Amp thread: https://ampcode.com/threads/T-01a1e45a-5e86-73ff-8205-b24a69acede0

@duncanmcclean
duncanmcclean merged commit be19118 into 6.x Nov 16, 2026
65 checks passed
@duncanmcclean
duncanmcclean deleted the 13388 branch November 16, 2026 16:29
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.

S3 Bucket Prefix doesn't work with Glide transformations

2 participants