2

Is this a known bug?

A link with quotes is visible at preview time, but not visible when actually posted.

The above "link" word at preview time points to this URL (which, as a line on its own at least partially works):

http://www.google.com/search?q="green+bits"+"red+bits"

Workaround: fully encode the URL.

Edit:

After reading https://stackoverflow.com/editing-help (thanks Jeff) and trying to understand what George means, here are some samples in code format to make my question more clear:

This format does not work:

[link][5] 
[5]: http://www.google.com/search?q="green+bits"+"red+bits"

This format does not work either:

[link][6] 
[6]: <http://www.google.com/search?q="green+bits"+"red+bits">

This format works (but requires you to encode the URL, so you cannot copy/paste from your browseers' address bar):

[link][7] 
[7]: http://www.google.com/search?q=%22green%2Bbits%22%2B%22red%2Bbits%22
1

See

https://stackoverflow.com/editing-help

for 4-5 different linking formats

edit: the sanitizer doesn't like the non-encoded " remaining in the URL. I added it to the list of characters encoded in EncodeProblemUrlChars().

  • Jeff, thanks. Totally agree with "status completed". It worked! I'll accept your answer. – Jeroen Wiert Pluimers Jan 18 '10 at 18:51
  • Is this list available in the pagedown project as well? Couldn't find in its wiki when searching. – Shadow The Dragon Wizard Jun 4 '13 at 9:03
2

The answer isn't to fully encode the URL, the answer is to use an identifier and not just have a stock URL sitting on a page.

  • 1
    I'm not sure I understand your answer. What's a "stock URL"? Your URL (which removes the quotes) results in a semantically different URL than the one with quotes (which goes wrong). I'll try to rephrase my question to make it better readable. – Jeroen Wiert Pluimers Jan 18 '10 at 15:16

You must log in to answer this question.

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