๐Ÿ’พ Archived View for bbs.geminispace.org โ€บ s โ€บ Rosy-Crow-Issues โ€บ 42 captured on 2024-08-18 at 22:20:03. Gemini links have been rewritten to link to archived content

View Raw

More Information

โฌ…๏ธ Previous capture (2024-07-09)

๐Ÿšง View Differences

-=-=-=-=-=-=-

[#42] Image links don't open correctly

With inline images enabled, clicking an image in order to open it results in the image being incorrectly shown as garbage text.

Here is an image to test with:

/u/Addison/image/207.png

#bug โœ”๏ธŽ

๐Ÿž Issue #42 in s/Rosy-Crow-Issues

๐Ÿ Addison [mod, ๐Ÿ—ฃ๏ธ developer]

2023-12-04 ยท 9 months ago

3 Comments โ†“

๐Ÿ Addison [OP/mod, ๐Ÿ—ฃ๏ธ developer] ยท 2023-12-04 at 09:36:

I've noticed this on different hosts, so I do not think it's an incorrect MIME type.

๐Ÿ Addison [OP/mod, ๐Ÿ—ฃ๏ธ developer] ยท 2023-12-04 at 17:47:

This happens because the inline images are displayed using base64-encoded data URLs. Clicking on them tries to open the data itself (the contents of the image) as a new page.

๐Ÿ Addison [OP/mod, ๐Ÿ—ฃ๏ธ developer] ยท 2024-01-06 at 22:01:

Correction: this *actually* happens because fetching images inline caches them in the same place that page contents are cached.

When opening the image link, the app doesn't examine the URL's extension before attempting to the URL's a cached data. It assumes that whatever is cached for a given URL is a gemtext page, so it tries to load the image as a gemtext page.