Repository navigation
Remove invalid microdata and root hx-disable from the breadcrumb - #5027
Merged
Merged
Conversation
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]>
Contributor
Docs preview (local build)Handbook preview: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/5027/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Breadcrumb links no longer carry an
itempropwith noitemscope, 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
itempropwith noitemscope. The goal is to explain the finding and remove the invalid attribute, and to drop thehx-disableexpression on the root crumb at the same time.Why
Each breadcrumb
<a>carriesitemprop="item", but no ancestor declaresitemscope. Validators flag the attribute and crawlers ignore it. TheBreadcrumbListJSON-LD fromBreadcrumbsList.csalready carries the structured data, so the attribute adds nothing. The root crumb also setshx-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-LDBreadcrumbListstays the only source of structured data, so nothing is duplicated.Root crumb navigation
The
hx-disableexpression 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
ApiBreadcrumbsRenderingTestslose the two attributes. Nothing else in them changes.Verify
Check on the preview
itempropon the crumb links.🤖 Generated with Claude Code