First off: Thanks for this module, as really seems to work brilliantly!

Problem/Motivation

When generating static pages, some elements get an additional "--2", "--3" or "--4" added to their id attribute (I guess this will increase if the page gets bigger).
I cannot see any scheme where exactly this happens.

Some examples (diff between dynamic and static version):

-    <nav aria-labelledby="block-hauptnavigation-3-menu" id="block-hauptnavigation-3" class="block block-menu navigation menu--main">
+    <nav aria-labelledby="block-hauptnavigation-3--3-menu" id="block-hauptnavigation-3--3" class="block block-menu navigation menu--main focus-within">

-  <h2 class="visually-hidden" id="block-hauptnavigation-3-menu">Hauptnavigation</h2>
+  <h2 class="visually-hidden" id="block-hauptnavigation-3--3-menu">Hauptnavigation</h2>

-    <div data-drupal-messages-fallback="" class="hidden"></div><div id="block-zircon-content" class="block block-system block-system-main-block">
+    <div data-drupal-messages-fallback="" class="hidden"></div><div id="block-zircon-content--3" class="block block-system block-system-main-block">

This breaks CSS styles.

Running on D8.8.8, using Zircon theme (though I think that should be irrelevant).
Static site gets generated via drush.
Tried to clear cache via GUI or drush to no avail.

This happens only on some pages.

Can this be the page itself and tome only triggering it somehow? Any ideas as to where I could look at, then? This problem never seems to happen when using the page dynamically.

Comments

tgoeg created an issue. See original summary.

minneapolisdan’s picture

Did you try applying the patch found on this page?

https://www.drupal.org/project/tome/issues/3126325

tgoeg’s picture

Status: Active » Fixed

Sorry, I searched a lot but did not find the related issue. I does indeed fix it, thanks a lot!
This should be part of the distributed code.

Status: Fixed » Closed (fixed)

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