Description
I noticed that anchor/hash links in the right-hand side menu (Table of Contents) are not functioning correctly on documentation pages. Specifically, the top-level items do not scroll to the correct section when clicked, but sometimes also others.
Steps to Reproduce
Navigate to the documentation page: Subscription Entitlements Recipe
Locate the "On this page" menu (right sidebar).
Click on a top-level link, for example: Step 2: Develop PostgreSQL functions for entitlements.
Specific Broken Anchor: ...#step-2--develop-postgresql-functions-for-entitlements
Expected ### Behavior
Clicking the link in the sidebar should scroll the viewport directly to the corresponding header on the page.
Actual ### Behavior
The URL updates with the hash, but the page does not scroll to the target section (or the link is effectively dead).