fix(seo): align minerals JSON-LD canonical + bump knowledge to v1.4.1#43
Merged
Merged
Conversation
… bump knowledge to v1.4.1 MineralSchema.astro was emitting Thing.url and the Gallery breadcrumb item without a trailing slash, while the page's <link rel="canonical"> already included one. Google resolved the mismatch by choosing its own canonical, causing "Duplicate, Google chose different canonical than user" exclusions in GSC for every mineral page (first surfaced on /minerals/opal-doublet-cabochon/ and /minerals/synthetic-ruby-verneuil-boule/). Both template literals in MineralSchema.astro now include the trailing slash so JSON-LD and the HTML canonical agree. Also bumps KNOWLEDGE_VERSION to v1.4.1, pulling the upstream fix that corrects a broken /tools/calculator link to /tools/measurement in the knowledge base content.
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.
Summary
MineralSchema.astro: add trailing slash toThing.urltemplate literal (line 14) and the Gallery breadcrumb item (line 83) so JSON-LD canonical declarations match the page's<link rel="canonical">. Without this, Google resolved the mismatch by choosing its own canonical, causing "Duplicate, Google chose different canonical than user" exclusions in GSC (first confirmed on/minerals/opal-doublet-cabochon/and/minerals/synthetic-ruby-verneuil-boule/, silently affecting all other mineral pages).src/lib/knowledge-version.ts: bumpKNOWLEDGE_VERSIONfromv1.4.0tov1.4.1to pull the upstream knowledge base fix correcting a broken/tools/calculatorlink to/tools/measurement.Test plan
/minerals/opal-doublet-cabochon/now emits trailing-slashThing.urland breadcrumbitem