carlos / platform Public

static-dir-slash

Human

Static sites: a folder requested without its trailing slash (/blog/post) now 301s to the slash form (./post/), as GitHub Pages and Netlify do. Paul asked 2026-10-29 after paulca.com's analytics listed /blog/deshittification and /blog/deshittification/ as two pages. Files are never redirected, index-less folders stay 404, rewrites are left alone, and a _redirects rule naming the path wins (no loop with a forced /about/ -> /about).

Commits 6
Discussions 0 0 open
Tasks 4/5 done

Discussions

  • No discussions on this branch yet.

Tasks 4/5 done

  • Build redirect, tests, docs Done
  • Census proposal Done
  • Astra review + census approval Done
  • CI green Done
  • Merge, release, roll Not started

Activity