Added quotations to hashtags searches

Since #Hashtags can contain space, using quotation
marks is neccessary when issuing searches from
clicking the #Hashtags in the UI.

Change-Id: I2e07ca354a11092dceaa23691d6d72300d7abbef
This commit is contained in:
Gustaf Lundh 2014-09-20 17:32:22 +02:00
parent 2d39c1e065
commit f9ce1232e5

View File

@ -162,7 +162,8 @@ public class Hashtags extends Composite {
.setAttribute(DATA_ID, hashtagName)
.setStyleName(style.hashtagName())
.openAnchor()
.setAttribute("href", "#" + PageLinks.toChangeQuery("hashtag:" + hashtagName))
.setAttribute("href",
"#" + PageLinks.toChangeQuery("hashtag:\"" + hashtagName + "\""))
.setAttribute("role", "listitem")
.append("#").append(hashtagName)
.closeAnchor()