Edit icon button disappears after the second display of a page

Created on 18 August 2025, 3 months ago

Problem/Motivation

Since Drupal 10.4, we saw that the button edit icon (in top right) that allow to toggle others edit button in the page, is displayed correctly during the first browser request, then it was hidden during other page refresh

Steps to reproduce

Install drupal 10.4.8
Admin toolbar 3.x

first display: https://ibb.co/Hfxz4nwf
second display: https://ibb.co/fdwqj4v0

Proposed resolution

If I removed session storage of my user, the button is back for the new browser request and was hidden after.
I think there is a problem in session storage, introducing during the core version 10.4.x, I tested :
10.3.13 -> Ok
10.4.0 -> Nok
10.4.8 -> Nok

Disable cache didn't fix the problem, only remove session storage.

🐛 Bug report
Status

Active

Version

3.6

Component

Code

Created by

🇫🇷France tichris59

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

Comments & Activities

  • Issue created by @tichris59
  • 🇫🇷France tichris59

    In my case, on the page /admin/content, I if remove the key session storage:

    Drupal.contextual.entity.view.edit_form:view=content:location=page&name=content&display_id=page_1&langcode=fr

    fix the problem for the next reload and after the problem come back

Production build 0.71.5 2024