Page MenuHomePhabricator

Bizarre results in Special:WhatLinksHere
Closed, DuplicatePublic

Description

If you go to https://fa.wikipedia.org/wiki/بحث_ویکی‌پدیا:صفحه_تمرین you will see a short piece of text, containing a link (generated by a template) to https://fa.wikipedia.org/wiki/زبان_آلمانی (and no redirects are involved). It does NOT link to https://fa.wikipedia.org/wiki/آلمانی

However, if you go to https://fa.wikipedia.org/wiki/Special:WhatLinksHere/آلمانی you will find the original page (بحث ویکی‌پدیا:صفحه تمرین) as a linking page! Here is the proof:

https://fa.wikipedia.org/w/index.php?title=%D9%88%DB%8C%DA%98%D9%87%3A%D9%BE%DB%8C%D9%88%D9%86%D8%AF+%D8%A8%D9%87+%D8%A7%DB%8C%D9%86+%D8%B5%D9%81%D8%AD%D9%87&target=%D8%A2%D9%84%D9%85%D8%A7%D9%86%DB%8C&namespace=5

It is very confusing as to why WhatLinksHere is listing a page that is NOT linking that page.

Event Timeline

Huji created this task.May 19 2015, 9:19 PM
Huji raised the priority of this task from to Needs Triage.
Huji updated the task description. (Show Details)
Huji added a project: MediaWiki-Special-pages.
Huji added a subscriber: Huji.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 19 2015, 9:19 PM

One of the templates used on that page seems to use that link internally: https://fa.wikipedia.org/w/index.php?title=%D8%A7%D9%84%DA%AF%D9%88:%D8%A8%D9%87_%D8%A2%D9%84%D9%85%D8%A7%D9%86%DB%8C&action=edit (search for آلمانی)

I haven't investigated much since the RTL text makes it difficult for me to understand the syntax

Huji added a comment.May 20 2015, 2:36 AM

I am sorry for the difficulty. I tried to replicate in a non-RTL language but wasn't successful.

As for the link, I'm afraid you are not correct. That template links to [[زبان آلمانی]] not to [[آلمانی]] but the WhatLinksHere counts pages containing it towards the latter rather than the former.

When #ifexists is involved, it sounds like T14019