Skip to content

Remove invalid microdata and root hx-disable from the breadcrumb - #5027

Merged
reakaleek merged 1 commit into
mainfrom
explain-breadcrumb-microd-3cefcebf
Nov 24, 2026
Merged

reakaleek merged 1 commit into
mainfrom
explain-breadcrumb-microd-3cefcebf

Conversation

@reakaleek

@reakaleek reakaleek commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Breadcrumb links no longer carry an itemprop with no itemscope, and the root crumb now swaps in place instead of forcing a full page load.

Affects: Site UI, API reference

Prompt summary: A review flagged the legacy breadcrumb for invalid microdata, an itemprop with no itemscope. The goal is to explain the finding and remove the invalid attribute, and to drop the hx-disable expression on the root crumb at the same time.

Why

Each breadcrumb <a> carries itemprop="item", but no ancestor declares itemscope. Validators flag the attribute and crawlers ignore it. The BreadcrumbList JSON-LD from BreadcrumbsList.cs already carries the structured data, so the attribute adds nothing. The root crumb also sets hx-disable, so htmx skips it and the browser reloads the whole page.

What

Breadcrumb links

The itemprop="item" attribute is gone from every crumb. The JSON-LD BreadcrumbList stays the only source of structured data, so nothing is duplicated.

Root crumb navigation

The hx-disable expression is gone, so the first crumb swaps content in place like the others. The partial is shared, so Markdown, Codex and API Explorer pages all change.

API breadcrumb snapshots

Two verified snapshots in ApiBreadcrumbsRenderingTests lose the two attributes. Nothing else in them changes.

Verify

dotnet test --project tests/Elastic.ApiExplorer.Tests --treenode-filter "/*/*/ApiBreadcrumbsRenderingTests/*"

Check on the preview

  • Admonitions — click the first breadcrumb. It swaps the page in place and no longer reloads. The page source has no itemprop on the crumb links.

🤖 Generated with Claude Code

The breadcrumb links carried `itemprop="item"` with no `itemscope` ancestor, which validators flag and crawlers ignore. The `BreadcrumbList` JSON-LD already carries the structured data. The root crumb also set `hx-disable`, which forced a full page load. It now swaps in place like the other crumbs.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@reakaleek
reakaleek requested a review from a team as a code owner November 24, 2026 07:56
@reakaleek
reakaleek requested a review from technige November 24, 2026 07:56
@reakaleek reakaleek added the bug label Nov 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@reakaleek
reakaleek merged commit fd4bde6 into main Nov 24, 2026
50 checks passed
@reakaleek
reakaleek deleted the explain-breadcrumb-microd-3cefcebf branch November 24, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant