Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Media Parent Entity Link

1,117 sites Security covered
View on drupal.org

This module allows media entity images to link to the parent entity that is referencing them, rather than linking to the media entity itself. This is particularly useful for displaying images in views, and it works with Image and Responsive Image display formatters.

This module enables you to link image fields of media entities to their referencing (node) entities. You will be able to set up the view mode for the media entity accordingly.

Currently with Drupal Core media handling you are not able to link an image from within a media entity to the parent entity that is referencing the media entity. There is an option to link to "Content", but this will generate a link to the media entity and not to the entity that is embedding/referencing the media entity. Most often user will want to link the image to the parent entity and not to the media entity, especially when using such images in views. While you can achieve this with using field based views, it is not possible to achieve this with views based on view modes. This is where this module comes in to bridge this gap.

Some hints about this module:

  • Currently this module supports display formatters "Image" and "Responsive image".
  • If you check the "Link image to"-setting (from core module) and the "Link to parent entity..."-setting (from this module), the setting "Link to parent entity ..." will take precedence.

Attention: The module now (since version 1.4) supports extending formatters via hook. Blazy integration was tested succesfully. But still each formatter needs to be examined if it's compatible with this module first.

This module is similar to File Entity Link for Drupal 7, though it's not the successor to this module.

Activity

Total releases
1
First release
Jan 2026
Latest release
6 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
8.x-1.4 Stable Jan 11, 2026