Re:Trailing slashes on URLs: Contentious or settled?
by xvector on Thursday January 27, 2022 @03:08AM
(#30097637)
Why does .Parse trim the 1.0 when there isn't a trailing slash?
[ Parent
| on HN ]
Re:Trailing slashes on URLs: Contentious or settled?
by dotancohen on Thursday January 27, 2022 @03:24AM
(#30097749)
Because the term "relative" is relative to the current directory, not the current file. It's subtle, but if a directory is being referenced in a form that looks like a file (without the trailing slash) with no additional context, then the parent directory is considered.