Skip to content

Docs breadcrumbs: drop the URL-less section step, and check JSON-LD - #531

Merged
fstubner merged 1 commit into
mainfrom
fix/breadcrumb-item
Oct 5, 2026
Merged

fstubner merged 1 commit into
mainfrom
fix/breadcrumb-item

Conversation

@fstubner

@fstubner fstubner commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Search Console's critical issue Missing field "item" (in "itemListElement") on the docs pages.

Cause. Head.astro emitted Docs > sidebar group > page. Sidebar groups (Start, Interfaces, Operations, Reference) have no page, so the middle step had a name and no item URL. Google requires one on every step but the last. Live on netscli.com/docs/install/ today:

1 Docs          https://netscli.com/docs/
2 Start         (no item)
3 Installation  https://netscli.com/docs/install/

Fix. Docs > page. The docs index gets one step (it is Docs) instead of the same URL twice.

Guard. New check:structured-data reads every built page's JSON-LD and checks each BreadcrumbList: positions count from 1, every step has a name and an item URL, no URL repeats. It runs in the Site workflow after the build. Against the previous Head.astro it fails with 12 problems, one per docs page; against this branch it passes (15 JSON-LD blocks, 11 breadcrumb lists).

The template has the same Head.astro and needs the same fix; it goes over with the next sync, or as its own PR if you prefer.

After merging, use Validate fix on the issue in Search Console to have Google re-crawl.

Search Console flagged every docs page: Missing field "item" (in
"itemListElement"). The breadcrumb was Docs > <sidebar group> > <page>,
and sidebar groups have no page, so the middle step had no item URL,
which Google requires. Now Docs > <page>, and the docs index is a single
step rather than the same URL twice.

site/scripts/structured-data.mjs parses every built page's JSON-LD and
checks each BreadcrumbList (positions, names, an item URL on every step,
no repeated URLs). Run in the Site workflow after the build. Against the
previous Head.astro it reports 12 problems, one per docs page.
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Site preview: https://pr-531.netscli-site-preview.pages.dev

Built from ae1e373 with NETSCLI_PREVIEW=1 — noindex, and analytics disabled so it does not report into netscli.com's numbers.

Production is unaffected: netscli.com is served from GitHub Pages via pages.yml, which is manual-only.

@fstubner
fstubner merged commit cf3e251 into main Oct 5, 2026
18 of 19 checks passed
@fstubner
fstubner deleted the fix/breadcrumb-item branch October 6, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant