Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

URL apostrophe bug

  1. May 8, 2013 #1

    A.T.

    User Avatar
    Science Advisor
    Gold Member

    Posting an URL with an apostrophe, like:

    http://en.wikipedia.org/wiki/Euler's_identity

    creates a broken link, because the apostrophe is not properly escaped in the internally generated URL:

     
    Last edited by a moderator: May 6, 2017
  2. jcsd
  3. May 8, 2013 #2
    Thanks for the report, I will forward it to support!
     
  4. May 8, 2013 #3

    Fredrik

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    But the link works. :confused:

    Edit: By the way, a similar thing happens when you search the forum for "Poincaré" for example. The search results will be links like this: https://www.physicsforums.com/showthread.php?t=689398&highlight=poincar%E9
    Code (Text):
    https://www.physicsforums.com/showthread.php?t=689398&highlight=poincar%E9
    If you click it, you will get a 406 Not Acceptable. So what I always do is to right-click, open link in new tab, and then delete the & and everything to the right of it from the URL.

    Edit 2: I'm using Firefox.
     
    Last edited: May 8, 2013
  5. May 8, 2013 #4
    hmmm it's just a white page for me
     
  6. May 8, 2013 #5

    A.T.

    User Avatar
    Science Advisor
    Gold Member

    Works on Firefox
    Bugs on Chorme

    Other special characters might be affected too.
     
  7. May 8, 2013 #6
    Viglink support says

     
  8. May 9, 2013 #7

    A.T.

    User Avatar
    Science Advisor
    Gold Member

    It looks like a Chrome bug:

    1) Click the link -> white page
    2) Open in new tab -> page displays OK
     
  9. May 9, 2013 #8

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    I am wondering why that detour via viglink.com is used at all. And why it appears to be present for Chrome only.


    Edit: Why does Chrome need an additional website to track clicks? I think the browser does that anyway? :D
     
    Last edited: May 9, 2013
  10. May 9, 2013 #9
    Click tracking
     
  11. May 10, 2013 #10

    A.T.

    User Avatar
    Science Advisor
    Gold Member

    Big Brother

    Because Google product users don't mind being spied on. But it's still annoying if those detours break something. Now at least I know a workaround.
     
  12. May 10, 2013 #11

    PAllen

    User Avatar
    Science Advisor
    Gold Member

    Why do you think vigilink usage only occurs for chrome? I see it referenced when PF is used by firefox (and I use software that shows what url's are accessed during navigation).
     
    Last edited: May 10, 2013
  13. May 10, 2013 #12

    dlgoff

    User Avatar
    Science Advisor
    Gold Member

    Same here and I have no problem with it as I want PF to grow and prosper.
     
  14. May 10, 2013 #13

    mfb

    User Avatar
    2016 Award

    Staff: Mentor

    This is what the forum sends to my firefox:

    Code (Text):
    <div id="post_message_4376188">

    Posting an URL with an apostrophe, like:<br />
    <br />
    <a href="[PLAIN]http://en.wikipedia.org/wiki/Euler&#[b][/b]39;s_identity"[/PLAIN] [Broken] target="_blank">[PLAIN]http://en.wikipedia.org/wiki/Euler's_identity</a><br[/PLAIN] [Broken] />
    <br />
    [...]
    It is the converted BB-Code, and nothing else. It is up to the browser to interpret &#39;, and firefox can do that.
     
    Last edited by a moderator: May 6, 2017
  15. May 10, 2013 #14

    PAllen

    User Avatar
    Science Advisor
    Gold Member

    I wasn't talking about what happens with this url, but the general use of viglink by PF, which I assume is benign (and good for PF). Code like the following gets executed during navigation around PF:

    var vglnk = { api_url: '//api.viglink.com/api',
    key: '6afc78eea2339e9c047ab6748b0d37e7' };

    (function(d, t) {
    var s = d.createElement(t); s.type = 'text/javascript'; s.async = true;
    s.src = ('https:' == document.location.protocol ? vglnk.api_url :
    '//cdn.viglink.com/api') + '/vglnk.js';
    var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);
    }(document, 'script'));
     
    Last edited by a moderator: May 6, 2017
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: URL apostrophe bug
  1. URL for searching (Replies: 1)

  2. Is this a bug? (Replies: 5)

  3. URLs in signatures (Replies: 4)

  4. [url][/url] tag? (Replies: 4)

  5. Is this a bug? (Replies: 3)

Loading...