News for hackers. Stuff that matters.
Re:Trailing slashes on URLs: Contentious or settled? by Enderboi on Thursday January 27, 2022 @03:11AM (#30097658)
I literally just closed a ticket about this issue yesterday.. 'why are these relative URLs downloading from the parent folder'.

"Because your CMS is rewriting out trailing slashes. Make it stop that, and then you'll be in the relative path you think your in".

The internet uncertainty principle: It's not DNS, it's trailing slashes. (apologies to Herr Heisenberg :)

Re:Trailing slashes on URLs: Contentious or settled? by hypertele-Xii on Thursday January 27, 2022 @05:26AM (#30098636)
Maybe stop "thinking you're in a path" and actually explicitly define which path you wanna be on [1]. The <base> element has existed expressly for this purpose since 1991, although it was called <address> in the first draft.

[1] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ba...