Yilialinn commented on PR #2100:
URL: https://github.com/apache/apisix-website/pull/2100#issuecomment-5337244592
> Please explicitly override the canonical (and `og:url`, if kept aligned)
to `${siteUrl}${pathname}` for a matched historical/`next` page with no
latest-release counterpart, rather than omitting the override. Then rerun the
build so the per-page assertion and exhaustive local-target validator both pass.
Addressed in `6a7c688` and `5514b4d`:
- Historical/`next` pages now point to the versionless latest URL only when
that document exists in the latest release.
- Pages without a latest-release counterpart, including
`docs/apisix/next/plugins/mcp-bridge/`, explicitly self-canonicalize and keep
`og:url` aligned.
- Versionless latest canonicals are normalized with a trailing slash.
- The exhaustive validator now decodes canonical `href` values using
browser-compatible HTML attribute semantics, so encoded paths such as `q&a`
are validated correctly without hiding real missing targets.
- Added regression coverage for numeric/named entities, `/`, mixed-case
invalid entities, attribute-context entities, external origins, and real
missing targets.
The full `Test and Deploy Website` build now passes, including the canonical
contract, Astro overlay, local canonical target validation, sitemap generation,
and desktop/mobile tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]