Update to Drupal 9.3.0 adding --2 suffix to (views-) block-ID's

Created on 14 December 2021, over 3 years ago
Updated 6 May 2024, 11 months ago

Problem/Motivation

Updates from Drupal 9.2.10 to Drupal 9.3.0 are adding an --2 suffix to block-ID's (maybe only views-block-ID's?). For example block-views-block-newsslider-block-1 changes to block-views-block-newsslider-block-1--2, causing all JS an CSS selectors applied to the specific IDs not to work anymore and breaking the design of the website. This happens at least to all block-views-block-Elements of the affected websites.

This happend with different websites and different base themes (Classy, Bootstrap 3).

Setup:

Steps to reproduce

Update from Drupal 9.2.10 to Drupal 9.3.0

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Fixed

Version

9.3

Component
RenderΒ  β†’

Last updated 3 days ago

Created by

πŸ‡©πŸ‡ͺGermany got intermedia

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.

  • πŸ‡¦πŸ‡ΉAustria tgoeg

    Still seeing this on a 10.1 site on a page where a subnavigation is put into one block as well as a Webform into another. The additional ID is only added when loading the second page of the form (which is not configured to use AJAX).

    Changing CSS to target the class and not the ID (as advised above) solves it for me, but still this seems like a lurking bug.

Production build 0.71.5 2024