//slashdot.org

| | Comments (0)
In Slash 2, we changed the "rootdir" variable from "http://slashdot.org" to "//slashdot.org". This variable is appended to the front of links on the site. We still wanted to have the hostname in the paths, and we also wanted to have it work with HTTPS (we have plans to perhaps allow some access to Slashdot over HTTPS; this syntax provides for URIs relative to the protocol).

Yes, we could eschew having the hostname, so rootdir could just be "". Or we could forgo HTTPS, and use the "http://slashdot.org". But we wanted it this way, because it gives us everything we want.

So what's the problem? A lot of people don't realize this syntax is perfectly legal under RFC 2396 (see Appendix C.1). Or they just don't care if it is legal, but just get mad because on some clients it is broken. Well, in most clients it works (Netscape, Mozilla, IE, Opera, iCab, lynx, links, Konqueror [2.0 and up]; one is pressed to think of those that don't work, but there are some). For those that don't, those clients are *broken*.

So we get (som of them nasty) messages from people about how this is a bug in Slash and how we shouldn't use malformed URLs. It isn't, and we're not. Your client is broken. Fix it. Someone said w3m doesn't handle the links properly. I wouldn't know; I couldn't get it to compile on Red Hat last I tried. :-/

We could change to a different link syntax so it works on all clients. But again, we want it this way. And further, Slashdot is a very popular site, and hopefully clients will be forced to be compliant because of that.

If not, well, sucks to be them. :-) use.perl.org

Leave a comment

<pudge/*> (pronounced "PudgeGlob") is thousands of posts over many years by Pudge.

"It is the common fate of the indolent to see their rights become a prey to the active. The condition upon which God hath given liberty to man is eternal vigilance; which condition if he break, servitude is at once the consequence of his crime and the punishment of his guilt."

About this Entry

This page contains a single entry by pudge published on August 20, 2001 4:02 PM.

dude was the previous entry in this site.

Pudge's Picks is the next entry in this site.

Find recent content on the main index or look in the archives to find all content.