fixed bug with linking to search result for profile while logged in, where the profile linked to would always be the profile of the logged in user