Steps to replicate the issue (include links if applicable):
Go to a diff links on a mobile site using Special:MobileDiff e.g. https://en.m.wikipedia.org/wiki/Special:MobileDiff/1181852947
What happens?:
A second set of 'Previous edit' and 'Next edit' links appear under the edit summary.
What should have happened instead?:
No duplicate links.
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
QA
beta
Check only one set of previous and next links is shown on https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Special:MobileDiff/534765&diffonly=1
production
Check only one set of previous and next links is shown on https://en.m.wikipedia.org/wiki/Special:MobileDiff/1181852947