Only link to history if there are changes

Change-Id: I8685ad72560add0d3c49cacbc45f91160a25085e
Merge "Only link to history if there are changes"