Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Not able to load images that point to a image path on Github
Open rudolfs opened 2 years ago

Originally submitted by @sebastinez

URLs that point to a GitHub image page, which don’t have a ?raw=true querystring suffix and also don’t point to raw.githubusercontent.com, aren’t able to load the image properly.

Example:

https://app.radicle.xyz/seeds/rad.hedwing.dev/rad:zLEvMXwoqiUV9GdZfFZDhDWamPsx/tree/c3882a44dbc17bc2c88cf46ed1a7ddb3c3ce76c6/README.md

By adding a ?raw=true querystring, GitHub resolves the link to the raw content of that file, see

https://app.radicle.xyz/seeds/rad.hedwing.dev/rad:zLEvMXwoqiUV9GdZfFZDhDWamPsx/commits/4837395b5fa0c3c5353efc722642696d11bfdd6a

We could do a check that if an image is pointed to github.com and doesn’t have ?raw=true in its querystring we add it, and output a console warning maybe?

Workaround

Append ?raw=true to your images hosted on a github repo

Context

Zulip Conversation that ended up creating this issue