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;
  }

Issue fork flag-3517526

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ivnish created an issue. See original summary.

  • ivnish committed 597cea50 on 8.x-4.x
    Issue #3517526 by ivnish: Fix inline links caching
    
ivnish’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.