Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When placing an image field in Views it's impossible to configure them as an absolute link.
Normal ways aren't possible...
- The included "Link image to" lacks an absolute option.
- Adding an excluded [path] field for use in "rewrite results" with "Use absolute path" does not go absolute. It does in the preview, but not real display (cache cleared).
Here's the crazy kicker...
- Adding a "Custom text" field with a [path] set to absolute, then placing an anchor tag around an image turns the link back to non-absolute. I can even output the full [path] as text URL, but the moment it wraps an image it's force back to relative.
Don't know where else put this wack-a-doodle error regarding image fields + Views.
Comment | File | Size | Author |
---|---|---|---|
#1 | Screen shot 2012-07-13 at 6.21.04 PM.png | 16.25 KB | doublejosh |
#1 | Screen shot 2012-07-13 at 6.22.08 PM.png | 48.38 KB | doublejosh |
Comments
Comment #1
doublejosh CreditAttribution: doublejosh commentedHere are two screen shots of this crazy business.
Comment #2
marcingy CreditAttribution: marcingy commentedComment #3
dawehnerWow!
I'm just guessing, maybe the browser does some improving of the actual output. This would probably require some research.
Comment #4
doublejosh CreditAttribution: doublejosh commentedThis may belong in Image rather than Views... but
[path]
being unreliable made me believe Views.