Page MenuHomePhabricator

Special:ListFiles should link to actual version instead of latest version when Current version = no
Closed, ResolvedPublicFeature

Description

Steps to replicate the issue (include links if applicable):

What happens?:
Both "(file)" links link to the new version,
https://upload.wikimedia.org/wikipedia/commons/3/3e/19940722epoplar.jpg

What should have happened instead?:

The older one should link to the older version:
https://upload.wikimedia.org/wikipedia/commons/archive/3/3e/20230304033700%2119940722epoplar.jpg

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

20230304T151552.jpg (481×1 px, 50 KB)

Imagine you upload a picture of the letter A, then a newer version with the letter B.
Well, even though we still see A on the upload list, we can't get a link to it,
e.g., to ask someone to delete it.

Even though we are staring at a row with a picture of A in it,
all the links in that row are to B, just as if we were looking at the previous row.
The only difference is the

<img src=>

line.

Anyway, we might think we are giving an admin a link to the old version, but end up asking to delete the newer version!

Yes the File:xxx page does contain the proper links.

P.S.. please do your own experiment, as the older one I mentioned in this report are probably gone now.

Event Timeline

Below on https://commons.wikimedia.org/wiki/File:19940722epoplar.jpg we finally found links that correctly correspond to the pictures to their right:

20230304T152747.jpg (454×403 px, 32 KB)

That's great, but won't fix the bug with the aforementioned Special Page.

Aklapper renamed this task from Special:ListFiles uses new link instead of actual to Special:ListFiles should link to actual version instead of latest version when Current version = no.Mar 4 2023, 8:38 AM
Aklapper changed the subtype of this task from "Bug Report" to "Feature Request".

Change 909336 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/core@master] SpecialListFiles: Download link should also link to old files

https://gerrit.wikimedia.org/r/909336

Change 909336 merged by jenkins-bot:

[mediawiki/core@master] SpecialListFiles: Download link should also link to old files

https://gerrit.wikimedia.org/r/909336