3

Is there any chance that localhost links will be allowed again, or is that a completely closed subject? I've seen these posts, but neither seems to have a clear answer:

The link validator is overzealous and should allow posting so-called 'invalid' links

Link restrictions for new users -- can we exclude 'localhost'?

Sometimes I answer questions by providing code on Github with instructions on how to clone and run it, and sometimes that means starting a local server. In those cases, it's really nice to be able to provide a localhost link as the final step in the process. Perhaps they could be re-allowed based on reputation if it's mainly a "new user" error?

Here are a couple of examples from before localhost was disallowed:

Cannot Autowire Service into Controller

Configuring Integration Tests using Spring/Jetty (or Tomcat)/Maven for REST tests

5
  • 1
    I don't know why, but links like this make me very uncomfortable. They aren't supposed to be universally meaningful at all. That'd be like someone linking http://192.168.1.1 because it's a common address for a NAT router. I understand your use case, but I'm not sure if it's a big enough issue. Feb 27, 2013 at 6:44
  • @Andrew: I understand that reasoning to a point, but these are universal links that work for everybody every time, unlike 192.168.1.1, which might instead be 192.168.0.1 or 192.168.1.254. I guess it's the "if it's a big enough issue" that I'm really trying to find out about. It's definitely an issue. It's just a matter of whether it has enough traction with the right people. Feb 27, 2013 at 13:42
  • possible duplicate of Localhost in URL = numeric?
    – ChrisF Mod
    Mar 1, 2013 at 16:41
  • @ChrisF: This is not a dupe of that question. This one is a feature request to lift the restriction, the other is a bug report on the spelling of the error message. Mar 29, 2013 at 18:15
  • @MartijnPieters - I wan't sure either, which is why I left it as a question.
    – ChrisF Mod
    Mar 29, 2013 at 22:04

1 Answer 1

2

You should specify localhost in the code block instead of making it as an actual link. OP should be able to copy and paste the localhost from the code block.

http://localhost:8080/TestURL

See the answer from Marc Gravell to the following question.

Localhost in URL = numeric?

2
  • I understand that a non-link via code block is possible, but that's not what I'm asking. I want localhost links back because they are useful, and a "click" is much more convenient than a "click and drag to select the url, right click, copy, click and drag in the address bar, delete, right click, paste". I'm not saying this is the best or fastest way to follow a non-link link, but it's the way that I see most people do it, and since that's the case, this is kind of a big deal as far as usability goes. Feb 27, 2013 at 6:04
  • @RyanStewart: Sorry, I have no idea about that. Based on that reply from Marc Gravell, I assume that implementing localhost might not be preferred but I could be totally wrong.
    – user213400
    Feb 27, 2013 at 6:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .