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".