Title: fix(seo): consolidate versioned library landing pages onto /latest · Issue #1150 · TanStack/tanstack.com · GitHub
Open Graph Title: fix(seo): consolidate versioned library landing pages onto /latest · Issue #1150 · TanStack/tanstack.com
X Title: fix(seo): consolidate versioned library landing pages onto /latest · Issue #1150 · TanStack/tanstack.com
Description: Problem The recent latest-version redirect work correctly handles documentation routes, but product-specific landing routes bypass the shared /_library/$libraryId/$version parent. Live examples currently returning 200 with self-referenci...
Open Graph Description: Problem The recent latest-version redirect work correctly handles documentation routes, but product-specific landing routes bypass the shared /_library/$libraryId/$version parent. Live examples cur...
X Description: Problem The recent latest-version redirect work correctly handles documentation routes, but product-specific landing routes bypass the shared /_library/$libraryId/$version parent. Live examples cur...
Opengraph URL: https://github.com/TanStack/tanstack.com/issues/1150
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(seo): consolidate versioned library landing pages onto /latest","articleBody":"## Problem\n\nThe recent latest-version redirect work correctly handles documentation routes, but product-specific landing routes bypass the shared /_library/$libraryId/$version parent.\n\nLive examples currently returning 200 with self-referencing canonicals:\n\n- /query/v5 and /query/latest\n- /router/v1 and /router/latest\n- /ai/v0 and /ai/latest\n\nThis leaves duplicate landing pages even though nested latest-version docs correctly return 308.\n\nThe product-specific routes call beforeLoadLibraryLanding in src/routes/-library-landing-route.tsx. That helper validates a version but does not redirect library.latestVersion to latest. The current latest-version check in src/routes/_library/$libraryId/$version.tsx does not govern these static landing routes.\n\nGoogle canonical guidance: https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls\n\n## Desired behavior\n\n- /{library}/{library.latestVersion} permanently redirects with 308 to /{library}/latest.\n- Preserve the remainder of the request URL where applicable, including meaningful search parameters.\n- Every indexable library landing page, including historical numbered landing pages that remain accessible, declares /{library}/latest as its canonical landing URL.\n- og:url and twitter:url match the /latest canonical.\n- No numbered library landing page self-canonicalizes.\n- Existing historical documentation behavior remains unchanged: historical docs may remain accessible and use their current path-aware canonical logic.\n\n## Acceptance criteria\n\n- The shared product landing helper enforces the latest-numbered-version redirect for every product-specific landing route.\n- Tests cover at least Query, Router, AI, and one library with non-v1 latestVersion metadata.\n- /query/v5, /router/v1, and /ai/v0 return 308 to their /latest equivalents in an integration test.\n- Historical landing pages that return 200 emit only one canonical link, pointing to /latest.\n- /latest landing pages self-canonicalize and remain 200.\n- Sitemap entries continue to contain only /latest library landing pages.\n- Stable unversioned aliases such as /query are reviewed and use a permanent redirect when their mapping to /latest is intentional.","author":{"url":"https://github.com/KevinVandy","@type":"Person","name":"KevinVandy"},"datePublished":"2026-08-14T12:54:32Z","url":"https://github.com/TanStack/tanstack.com/issues/1150"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f559ffe5-ee69-8713-3b4e-3ee33c5fc775 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D244:1483DF:17E9447:20F12F6:6AF9A4D0 |
| html-safe-nonce | a5a853bac8ed48489e35c740cfa09d8b9cbdc83207ee2d931c4ca44ad31c408b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjQ0OjE0ODNERjoxN0U5NDQ3OjIwRjEyRjY6NkFGOUE0RDAiLCJ2aXNpdG9yX2lkIjoiNTI0NzgyNTYwOTM5MTQ0OTI5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 57c80b9412455c7837b1f2d824ba27d6ee9d08fa6b4e0ff10ed67ecc03f737aa |
| hovercard-subject-tag | issue:5151779715 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TanStack/tanstack.com/1150/issue_layout |
| twitter:image | https://opengraph.githubassets.com/de0913e2224bfa044ec7c13e79bf52da826eb5479008bc1d5c8de3b59755e835/TanStack/tanstack.com/issues/1150 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/de0913e2224bfa044ec7c13e79bf52da826eb5479008bc1d5c8de3b59755e835/TanStack/tanstack.com/issues/1150 |
| og:image:alt | Problem The recent latest-version redirect work correctly handles documentation routes, but product-specific landing routes bypass the shared /_library/$libraryId/$version parent. Live examples cur... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KevinVandy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| turbo-cache-control | no-preview |
| go-import | github.com/TanStack/tanstack.com git https://github.com/TanStack/tanstack.com.git |
| octolytics-dimension-user_id | 72518640 |
| octolytics-dimension-user_login | TanStack |
| octolytics-dimension-repository_id | 297489727 |
| octolytics-dimension-repository_nwo | TanStack/tanstack.com |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 297489727 |
| octolytics-dimension-repository_network_root_nwo | TanStack/tanstack.com |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width