More fix to diff link from contribution & recentchange page

The diff link could be either header revision or post revision

Bug: 62162
Change-Id: I28d479ae73e81eb85854e8a38b013dcf6776bb65
Merge "More fix to diff link from contribution & recentchange page"