fix: resolve SEO audit issues (hreflang redirects, orphan page, broken links)#2973
Merged
Conversation
…n links) - Strip trailing slash from hreflang alternates on dotted versioned routes in the llms-html-injector post-build plugin (matches the canonical fix) so Smart Accounts Kit changelog/version pages stop pointing hreflang at 308s. - Redirect the orphaned /smart-accounts-kit/1.5.0 x402 advanced-permissions page to the current equivalent in vercel.json. - Fix broken external links: Wagmi Vue, Circle USDC addresses, and Pimlico API-key docs; drop the dead Web3Auth React Playground example. - Render the OpenUPM registry URL as plain copyable text (new CopyableNoFollow `plain` prop) so crawlers stop flagging the 44 Unity pages. Tooling: - Add ambient *.module.css / *.module.scss declarations to src/globals.d.ts so the isolated tsc-files pre-commit hook can type-check CSS-module components. - Remove the Vale check from the lint-staged pre-commit hook (CI-only) and document why it must not be re-added. Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
yashovardhan
previously approved these changes
Jul 2, 2026
Set continue-on-error: true for the spelling job so Vale can report findings without blocking merges. This prevents false positives on valid technical content like code identifiers and product names from stopping CI.
Move `continue-on-error` from job to step level in the spelling check workflow. This ensures the job concludes with success status while keeping Vale findings visible in logs. Job-level `continue-on-error` keeps the overall run green but leaves the job's check run as failure, blocking required status checks. Updated comments to explain the reasoning.
yashovardhan
approved these changes
Jul 2, 2026
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.
Description
Fixes the issues flagged in the July 2 SEO audit (hreflang-to-redirect, orphan page, and links-to-broken-page reports), plus two small tooling fixes needed to get the changes through the local pre-commit hook.
SEO fixes
trailingSlash: true) emitshreflangalternates with a trailing slash, but Vercel serves paths whose final segment contains a dot (e.g.1.5.0) without one, causing a 308. Thellms-html-injectorpost-build plugin already strips the slash fromcanonical/og:urlon these routes; this extends the same fix to thehreflang="en"andhreflang="x-default"alternates so the Smart Accounts Kit changelog/version pages stop pointing hreflang at redirects./smart-accounts-kit/1.5.0/guides/x402/buyer/advanced-permissions/was intentionally hidden from nav but still ships in the frozen 1.5.0 snapshot with no incoming links. Added a permanent redirect to the current equivalent invercel.json.wagmi.sh/vue→wagmi.sh/vue/getting-started..../stablecoins/docs/usdc-on-test-networks→.../stablecoins/usdc-contract-addresses.dashboard.pimlico.io/apikeys→docs.pimlico.io/guides/create-api-key(2 tutorials).web3auth-playground.vercel.app, permanently 404).package.openupm.comregistry URL is correct but returns 404 at its HTML root (expected for a package registry), so it was flagged as broken. Added aplainprop toCopyableNoFollowthat renders the value as non-link copyable text (keeping the copy button), and applied it in the two shared Unity partials.Tooling
*.module.css/*.module.scssdeclarations tosrc/globals.d.tsso the isolatedtsc-filespre-commit hook can type-check CSS-module components (this was a pre-existing gap that surfaced when editingCopyableNoFollow).lint-stagedpre-commit hook (it's CI-only) and documented why it must not be re-added — it produces false positives on valid technical content (e.g.wagmi-tab, product names, intentional ellipses) and lints the whole staged file rather than the diff. PR CI still runs Vale.Notes / non-changes
npmjs.com403s in the audit are bot-protection responses, not real breakage.wagmi-tab, "composables", ellipses in Unity steps) are pre-existing false positives on valid technical content.Test plan
npm run typecheckpasses.npm run format:checkpasses in CI./smart-accounts-kit/1.5.0/changelog/1.5.0/) no longer end in/and return 200.Note
Low Risk
Changes are limited to docs content, post-build HTML normalization, redirects, and lint/CI workflow behavior with no impact on runtime auth or user data.
Overview
Addresses July SEO audit findings: hreflang tags pointing at 308 redirects, an orphan versioned page, and broken or misleading external links, plus contributor tooling so commits are not blocked by Vale false positives.
Hreflang / canonical alignment: The
llms-html-injectorpost-build step already strips trailing slashes fromcanonicalandog:urlon dotted final segments (where Vercel serves without a slash). It now applies the same normalization torel="alternate"tags withhreflang, so Smart Accounts Kit version/changelog URLs stop advertising redirecting hreflang targets.Routing & content: Adds a permanent redirect in
vercel.jsonfrom the hidden 1.5.0advanced-permissionssnapshot to the current guide. Updates tutorial/docs links (Pimlico API key, Circle USDC addresses, Wagmi Vue getting started). Removes the dead React Playground example fromexample-maps. For OpenUPM registry URLs that 404 at the HTML root,CopyableNoFollowgains aplainmode (copyable text, no anchor) in the shared Unity partials.Tooling: Vale is removed from Husky
lint-staged; CI Spelling still runs Vale but the step usescontinue-on-error: trueso required checks pass while warnings stay in logs. Contributor docs warn against re-adding Vale to pre-commit.src/globals.d.tsadds*.module.css/*.module.scssdeclarations sotsc-filescan type-check components likeCopyableNoFollowin the isolated pre-commit hook.Reviewed by Cursor Bugbot for commit db65037. Bugbot is set up for automated code reviews on this repo. Configure here.