"Display link as field" option doesn't work with layout builder, and console error rendering link via Views

Created on 29 March 2020, over 5 years ago
Updated 19 February 2025, 6 months ago

Steps to reproduce:

1. Install and enable flag module
2. Add new flag using default settings and choose a content type as flaggable
3. Make sure layout builder is enabled for the chosen content type
4. Visit layout builder for that content type and try to configure the flag field

This will result in the following error:

(from simplytest.me)

InvalidArgumentException: Invalid UUID "6c7457e1-35eb-4650-b166-b14647f5f531" in Drupal\layout_builder\Section->getComponent() (line 177 of /var/www/html.original/core/modules/layout_builder/src/Section.php).

To work around this I render the flag/unflag link in views using a relationship. While this seems to work so far, it does cause the following error in Console:

Uncaught DOMException: Failed to execute 'setItem' on 'Storage': Setting the value of 'Drupal.history.1.6557' exceeded the quota.
πŸ› Bug report
Status

Postponed

Component

Flag core

Created by

πŸ‡ΊπŸ‡ΈUnited States playful

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024