These are different URLs. The biggest difference between the two is that URLs consisting of relative paths will resolve from http://example.com/ for one and http://example.com/folder/ for the other.
However, I also noticed that no matter what I do, browser redirection
No, it will not.
Given the path that the HTTP server permits as a static directory in the file system, by default, most HTTP servers must send an HTTP redirect to add / to the end.
This is a server redirection, not a browser.
How you change it depends on the server, not the browser.
What should I do to prevent my browser from redirecting (or adding a slash)
Generally speaking, you should not. This is normal behavior. (And, as already mentioned, it depends on your server.)
If the change path causes problems for relative URIs, then use relative URIs with absolute paths in them (that is, that start with / ).
source share