Image links with query string results in weird-looking filename caption

(samluescher) #1

Embedding images with links containing a query string, e.g.
results in weird-looking filename caption “?name=sunset.jpg”.

Maybe check for query string?

(Régis Hanol) #2

Do you have an actual example I can check?

(samluescher) #3

It happens with img tags, for instance:

<img src="">

(Jens Maier) #4

A generic fix would be to have the composer generate an alt property from the URL and change the lightbox to display that value as the image title instead – allowing users to enter a filename or description manually, if so desired.

(Jeff Atwood) #5

We could try to regex out a filename, but that might be error prone too. At least the filename is in the querystring, so it is fairly clear what it is: