Psst... We're working on the next generation of Chowhound! View >
HOME > Chowhound > Site Talk >
Dec 10, 2007 02:22 PM

Link parser broken (again?)

Both links in the following post lead to 404s because the anchor has been constructed
to include the trailing period in the sentence.

I remember this happening way back at the beginning of the new site but
haven't encountered it in a while. If I'm just re-pointing-out the same old
bug, apologies. If not, it seems to be happening again ...

Here's the bug in action:
This link will work because it is not followed by a period,
but this identical link will not:

Safari 3.0, os x.

  1. Click to Upload a photo (10 MB limit)
  1. This is not a bug in general. A period is a valid path component and therefore points to a separate resource than the URL without the period.

    In the example of your post, the parsing could be a little smarter, but the quickest fix for you would be to not put the period you intend to finish the sentence flush with the URL you want linked.

    1 Reply
    1. re: Engineering

      >> This is not a bug in general.

      No argument there. But the view here from the user perspective is that it's
      harder to have to remember to never put a URL at the end of a sentence
      than it would be to deal with the vanishingly small number of links that end
      in a period.

      It's not terribly elegant, but if the rule was, "if you need to end a URL with a period, you
      have to use two", rather than, "never end a sentence with a URL", then the right
      thing would happen 99% of the time.