public String buildHashtagSearchLink(final String searchText, final Long streamViewId)
{
HashMap<String, String> params = new HashMap<String, String>();
params.put("search", searchText);
HistoryHandler history = Session.getInstance().getHistoryHandler();
// if a user clicks on a hashtag on the single activity view then search for the hashtag in the stream the
// activity was posted to
if (history.getPage() == Page.ACTIVITY && history.getViews().size() == 1
&& history.getViews().get(0).matches("\\d+"))
{
StreamEntityDTO destinationStream = activity.getDestinationStream();
Page destinationPage = destinationStream.getEntityType() == EntityType.PERSON ? Page.PEOPLE : Page.GROUPS;
String destinationView = destinationStream.getUniqueId();
return "#"