2026-05-25 21:15 UTC
Doing some research on URL structures and, wow, they're mighty strange when you think of them as file paths. `/some/path/` returning an html file is very unusual when you consider it from a file system perspective, as it would return a directory instead. `/path` returning `/path.html` makes some sense as `/path` is a valid file name (just with the .html omitted).
Replies (1)
-
@chronocide@sunny.garden 2026-05-25 21:17
https://developer.mozilla.org/en-US/docs/Learn_web_development/Howto/Web_mechanics/What_is_a_URL and https://en.wikipedia.org/wiki/Clean_URL do explain why this exists for web, but part of me doesn't like it. Should websites return directories (instead of sitemaps) when the URL ends with `/`?