Background
Special:IPContributions in archive mode is similar to Special:DeletedContributions, but shows the deleted contributions for temporary accounts given an IP address (or range), rather than the deleted contributions attributed to a particular user or IP address/range.
Both special pages largely format their results the same, although Special:IPContributions shows some extra information, such as the size of the change. (Special:DeletedContributions will be updated to do the same in T370438: Improve feature parity between Special:Contributions and Special:DeletedContributions).
However, the date links in Special:IPContributions do not work the same way as those in Special:DeletedContributions, which was unintentional and is a bug.
Special:DeletedContributions:
- If the user viewing the page has the undelete right, the date links to Special:Undelete for the page/timestamp
- Otherwise the date is not a link
Special:IPContributions (archive mode):
- If the user viewing the page has the deletedtext right or the undelete right, the date links to the revision itself (with the warning box that the page has been deleted)
- Otherwise the date is not a link
This was unintentionally done, so Special:IPContributions should be updated to behave like Special:DeletedContributions.
Technical notes
The row formatting for Special:DeletedContributions is done in DeletedContribsPager::formatRevisionRow, and the date link is specified here: https://gerrit.wikimedia.org/g/mediawiki/core/+/848b9fa281dc561a3af9668ec64e91725c4c0f67/includes/specials/pagers/DeletedContribsPager.php#369
The equivalent link is built for Special:IPContributions in ContributionsPager::formatRow with no difference between normal and archive modes: https://gerrit.wikimedia.org/g/mediawiki/core/+/848b9fa281dc561a3af9668ec64e91725c4c0f67/includes/pager/ContributionsPager.php#751
What needs doing
ContributionsPager should be updated to do the same as DeletedContribsPager.