Links to image-pages on Wikipedia broken

A little weird bug. If I insert the following link (Tabula Peutingeriana - Wikipedia), I will get this:

image

1 Like

It seems like some parser is getting thrown off by the # in the URL

1 Like

Good debugging. # appears sometimes within URLs :). I thought it was because of false .jpg

1 Like

ya the .jpg tells kinopio it’s an image, but the url is not a valid image source for the browser. you can get the real url of the image by clicking it again

test showing both invalid image url failing and valid url being used:

1 Like

Actually, I wanted link to the page from Wikipedia with necessary information about the image, not the image itself :). There is a workaround using markdown but I am thinking that this could happen more people since this is Wikipedia. Not sure how to solve it. Maybe to give an exception for url that are 1) on Wikipedia, 2) end with File: … .

2 Likes

in this case, you could use the wikipedia page link for that entry:

https://en.wikipedia.org/wiki/Tabula_Peutingeriana

it looks like wikipedia has a bug where closing a lightboxed image doesn’t update the page url. hopefully they fix that soon, might be worth filing a report with them on it

2 Likes

No, I wanted just the specific page for the image :). Like this one:

Unfortunately, their URL ends with this:
File:Part_of_Tabula_Peutingeriana.jpg

Yeah, it is weird.

1 Like

ya it’s def not a valid image url, i could whitelist this in future though to treat this type of url as a regular url instead of an image

2 Likes

I think it could be useful to whitelist it - since probably more people will insert links to these weird urls from Wikipedia. It seems to have quite a clear pattern, luckily.

1 Like

exception added using this regex to check RegExr: Learn, Build, & Test RegEx

1 Like