Using ERI formatter and specifying "Link to content" doesn't do anything

Created on 30 January 2023, over 1 year ago
Updated 7 February 2023, over 1 year ago

Problem/Motivation

As the title says, using the ERI formatter and specifying "Link image to content" doesn't do anything. The template provided with the module has url: An optional URL the image can be linked to as an available variable, but it's not used anywhere in the template.

Proposed resolution

Add a check to see if the option to link the image to content has been used and conditionally add an <a> around the <img>.

Or am I missing something?

🐛 Bug report
Status

Active

Version

1.3

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024