⚓ T255387 Redirected Items and Lexemes not shown with "redirect=no" on listing pages


Article Images

Redirected Items and Lexemes not shown with "redirect=no" on listing pages

Problem:
When redirecting one Item or Lexeme to another through a merge the behaviour in listing pages differs from normal MediaWiki wikitext pages. They should not differ.

What happens for normal wikitext pages: The page that contains the redirect shows up in the listing page with "&redirect=no" appended to the URL. This way the editor clicking the link is going to the source of the redirect and not the target. This is the desired behaviour.
What happens for Item and Lexeme pages: The page that contains the redirect shows up in the listing page without "&redirect=no" appended to the URL. This way the editor clicking the link is going to the target of the redirect and not the source.

Listing pages where this is happening: recent changes, user contribution, watchlist and potentially others

Example:

BDD
GIVEN an edit that turns an Item or Lexeme into a redirect
WHEN it is listed in listing pages
THEN the link to it links to the source of the redirect and not the target

Acceptance criteria:

  • redirect edits for Items and Lexemes also link to the redirect source, not target

Original report:
On user contributions pages on Wikidata, e.g. this one, redirected Wikidata items, which only have the item number preceded by the letter "Q" in parentheses, appear to be going to the normal redirected page instead of the "redirect=no" page.

Please fix the behavior to match the one for Wikitext redirect pages.

Actual behavior: Hovering over "(Q93054321)" will show the URL "https://www.wikidata.org/wiki/Q93054321".

Expected behavior: Hovering over "(Q93054321)" will show the URL "https://www.wikidata.org/w/index.php?title=Q93054321&redirect=no".

Event Timeline

Lydia_Pintscher renamed this task from Redirected Wikidata items not shown with "redirect=no" on user contributions pages to Redirected Items and Lexemes not shown with "redirect=no" on listing pages.Jul 24 2020, 10:31 AM

Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits