Skip to content

Use clean URLs without .html - #6

Merged
mbianchidev merged 1 commit into
mainfrom
clean-urls
Nov 26, 2026
Merged

mbianchidev merged 1 commit into
mainfrom
clean-urls

Conversation

@mbianchidev

@mbianchidev mbianchidev commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Pages now link to /projects and /about (and ./ for home) instead of projects.html and about.html. Canonical, og:url and sitemap.xml use the same clean URLs.

  • Live Pages behavior (checked 2026-11-26): https://synctune.it/projects and /about already return 200 from the .html files, and the old .html addresses keep returning 200, so inbound links do not break. Files stay where they are; no dir/index.html conversion (that would force a trailing-slash redirect).
  • Preview: opening files from disk no longer follows page links, so scripts/serve.mjs (Node built-ins only, not published) serves the site the way Pages does. Docs updated.
  • Checked: crawled the preview from /: all 52 internal URLs return 200, every #anchor exists, no .html page links remain. /projects/ and unknown paths return 404, .git and README are not served.

Also: mbianchidev/etcqlite is now public, so its card links the source instead of saying "Source is not public", and assets/projects/provenance.json records the logo's public origin (docs/assets/logo.svg at bac5543, same checksum).

Link pages as /projects and /about (and ./ for home) instead of their .html
files, including canonical, og:url and sitemap URLs. GitHub Pages already
serves /about from about.html and old .html addresses keep working.

Add scripts/serve.mjs, a Node built-ins preview server that resolves clean
URLs like Pages, and document it since opening files from disk no longer
follows the page links.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant