Re:Trailing slashes on URLs: Contentious or settled?
by hn_throwaway_99 on Thursday January 27, 2022 @03:53AM
(#30097949)
It's a client-side thing, not a server-side thing. That is, if you have a resource (like an href to another page) in your html, and that link is a relative link, the full URL that your browser ends up requesting depends on whether there is a trailing slash or not, because "relative" is relative to the current URL's directory, and what is considered the current directory differs depending on the presence of a trailing slash.
[ Parent
| on HN ]
There are no comments on this comment yet.