I came across an HTML anchor which reads
You are correct that it is incorrect, and it's almost certainly not intentional. Backslashes (
\) are considered unsafe in URLs, and if a backslash is necessary in your URL you would normally have to encode it as
So the link to
\ is converted to
/, which requests the root of the current server. The server is probably set up to serve some default file like
index.php when it receives a request for a directory, and the result is loading the homepage.
I don't know your local http server setup, but chances are it hasn't been configured to serve a specific page (like
index.php) when it receives a request for a directory. So you are likely just seeing a directory listing of whatever is at the root of the local http server you are running locally.