fix deep link to post in search

Returns the deep link to a post in the search result instead of always returning a link to the topic.