this post was submitted on 25 Oct 2023
497 points (98.4% liked)

Memes

47190 readers
853 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] takeda@lemmy.world 17 points 1 year ago (3 children)

Fixed link: https://en.wikipedia.org/wiki/File:Blue_stop_sign_-_hawaii_-_oct_2015.jpg

How did you get those back slashes there? I thought it was only happening in reddit.

[–] Pons_Aelius@kbin.social 4 points 1 year ago* (last edited 1 year ago) (3 children)

Your fixed link and mine look exactly the same here on kbin. Both link to the image correctly.

So I'm not sure where the error lies.

Kbin does not like to link to URLs that end in a filename.

EG: https://en.wikipedia.org/wiki/File:Blue_stop_sign_-_hawaii_-_oct_2015.jpg

It ignores the link text [Blue Stop Sign] completely and just posts the link.

[–] Pazuzu@midwest.social 7 points 1 year ago* (last edited 1 year ago) (1 children)

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 4 points 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.

[–] CoderKat@lemm.ee 1 points 1 year ago

https://files.catbox.moe/g9ulrf.jpg

It's likely a kbin bug (or an app if you used one to make the comment), since the slashes are there even on the website directly.

[–] Iron_Lynx@lemmy.world 1 points 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.

[–] Thorry84 3 points 1 year ago (2 children)

Your fixed link is broken for me on Jerboa

[–] Iron_Lynx@lemmy.world 2 points 1 year ago* (last edited 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.

[–] Live2day@lemmy.sdf.org 1 points 1 year ago

On sync, his fixed one was fixed and the first one was broken