• Pazuzu@midwest.social
        link
        fedilink
        English
        arrow-up
        7
        ·
        edit-2
        1 year ago

        your link shows a \ before each underscore in the visible text for me in both comments, like this https://en.wikipedia.org/wiki/File:Blue\_stop\_sign\_-\_hawaii\_-\_oct\_2015.jpg and hovering or clicking the link replaces that \ with %5C, so the entire thing tries linking to https://en.wikipedia.org/wiki/File:Blue%5C_stop%5C_sign%5C_-%5C_hawaii%5C_-%5C_oct%5C_2015.jpg. clicking ‘source’ on those comments shows just the \ before each underscore

        no idea what’s causing it, super weird to have the same bug messing with links that reddit does

        • elmicha@feddit.de
          link
          fedilink
          arrow-up
          4
          ·
          1 year ago

          The underscore is used to underline text in Markdown. If you want to display a real underscore like this: _, you have to escape it with a backslash. Some clients apparently interpret this rule even in plain links, and some don’t. If we use real Markdown links this should not happen.

      • Iron Lynx@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        As you put it, the web version renders & includes the backslashes, causing your link to break on lemmy.world, running the website itself in Firefox on Windows 10.

      • Iron Lynx@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        1 year ago

        Perhaps this would not happen if you insist on linking the image like this. Sure, it takes a little bit, but since the rendering of the underscores is put after including them in a hyperlink, I suspect going the extra mile makes it more reliable.

        Either way, on web (Firefox in Windows 10), the fixed link works as desired, while the original is borked. And the hyperlink behind text one… Well, you’ll see.