fixing the link issue with the detail page