Bug 51924: Special case main page history link

Change-Id: Ie223558ba9078424b2406f667639c3fc7b5077f2
Merge "Bug 51924: Special case main page history link"