Repository navigation
SEO: real URLs, a page per route, copy for all 37 tools - #12
Merged
Merged
Conversation
…rd, structured data, sitemap, 404) and text for all 37 tools
Contributor
…s the not-found page
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.
Search engines ignore everything after
#, so all 37 tools shared one URL. This gives every page a real address and the metadata search engines and link previews read.Path routing
/,/tools/,/tools/pdf/,/tools/image/,/tools/<kind>/<id>/,/licence/,/notices/; anything else is a not-found page. History API, no router dependency (routes.ts,router.tsx); links are real<a href>.#/...links are turned into the new paths on load. Build base is now/.A page per route (
seoPlugin.ts,seo.ts)404.html(required, or Cloudflare Pages answers every unknown address with 200) andsitemap.xml(41 addresses). Social cardog.png(scripts/og.ts).Tool copy
packages/tools/src/seo/), written from what each tool does and where it stops. Shown under the tool in four framed cells, hidden once a file is added. A test fails when a tool has none.Service worker
Vary(a host sendingVary: Originmade every script miss its kept copy offline).Checks
node scripts/seo-check.tsreads the built site like a crawler (titles, descriptions, canonicals, JSON-LD, links, sitemap, card size);checkruns it, and the Docker step now checks a tool page, the sitemap and a 404.Depends on nothing; merges cleanly with the robots and badge pull requests in any order.