Page MenuHomePhabricator

File links and transclusions to redirects show up twice on listings
Open, Needs TriagePublic

Description

File links to redirects are shown twice in the "File usage" section on Special:WhatLinksHere, once as a file link to the redirect target and once as a file link to the redirect. Transclusions are also shown twice on Special:WhatLinksHere.

For example:

image.png (208×383 px, 15 KB)

Main Page only has a file link to the File:Pinned2.png, it should not show up as a file link directly to File:Pinned.png.

The same goes for transclusions:

image.png (194×362 px, 14 KB)

Event Timeline

BrandonXLF renamed this task from File links to redirects show up twice in WhatLinksHere to File links to redirects show up twice in Special:WhatLinksHere.Mar 22 2021, 5:57 PM
BrandonXLF renamed this task from File links to redirects show up twice in Special:WhatLinksHere to File links to redirects show up twice on the file page and on Special:WhatLinksHere.
BrandonXLF updated the task description. (Show Details)
BrandonXLF renamed this task from File links to redirects show up twice on the file page and on Special:WhatLinksHere to File links and transclusions to redirects show up twice on listings.Mar 22 2021, 6:32 PM
BrandonXLF updated the task description. (Show Details)

Change 674348 had a related patch set uploaded (by BrandonXLF; owner: BrandonXLF):
[mediawiki/core@master] Add *_direct_link to imagelinks and templatelinks

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

Change 674348 had a related patch set uploaded (by BrandonXLF; owner: BrandonXLF):
[mediawiki/core@master] Add *_direct_link to imagelinks and templatelinks

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