Fix inline links caching

Created on 5 April 2025, 23 days ago

Problem/Motivation

Inline links are cached and render incorrect link

Proposed resolution

Add this code to flag_entity_view_alter

  // Enable placeholder on entity links to avoid them being cached with the
  // entity view mode.
  if (isset($build['links']['#lazy_builder'])) {
    $build['links']['#create_placeholder'] = TRUE;
  }
📌 Task
Status

Active

Version

4.0

Component

Flag core

Created by

ivnish Kazakhstan

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

Comments & Activities

Production build 0.71.5 2024