Removed the "details" link if the user is already in details page

Removed the detailsLink creating code and assignment.
Cleaned Whitespace

Patch courtesy: Sakshi Bansal

Bug: 50808
Change-Id: I06a473550db79752aacb874f17f879f3b1ee1991
Merge "Removed the "details" link if the user is already in details page"