3 ms·
Unfortunately, it looks like Hacker News deletes periods at the end of links, so this link won't work. If you want to read the article, you can just add a peri
by GabrielF00 11y ago
Unfortunately, it looks like Hacker News deletes periods at the end of links, so this link won't work.
If you want to read the article, you can just add a period to the end of the URL.
- jacquesm 11y agohttps://en.wikipedia.org/wiki/Data_General_Corp._v._Digital_Computer_Controls,_Inc%2e https://en.wikipedia.org/wiki/Data_General_Corp._v._Digital_... You can use %2e at the end of your URL it seems to come out as intended.
- dang 11y agoGood idea. I've done that above (hopefully icebraining won't mind) and will add it to our list of things to fix (edit: if there's a way to do so that doesn't break normal punctuation). Thanks to both of you!
- aptwebapps 11y agoStripping periods is probably beneficial more often than not. Also commas and closing parentheses, I imagine. Ideally the script would test url before modifying.
- saurik 11y agoI seriously, just a few minutes before reading this thread, out a period after a URL and was concerned "will this break? who is parsing the links, and in what scenarios will the period accidentally be considered part of the URL?" and decided "engh, I bet nothing expects periods at the end of URLs and thereby it will get chopped off, and people putting periods at the ends of URLs probably learn quickly that that causes problems and avoid doing that"... and then I read this thread ;P.
- aptwebapps 11y agoI actually have seen urls that ended with a long row of commas, now that I think of it. Empty parameters, I guess.
- jacquesm 11y agoEmpty parameters won't affect the url resolution (normally), they'll just be passed as empty to the same url. (Assuming the parameters were in the querystring as they should be...).
- aptwebapps 11y agoNo, not in the querystring. I didn't mean GET parameters.
- icebraining 11y agoCuriously it works for me, maybe it was fixed?
- saurik 11y agodang is a moderator and indicated he modified your comment to put the escape sequence.