From f9ce1232e5412176b753442edb0a1c4fe99c6be8 Mon Sep 17 00:00:00 2001 From: Gustaf Lundh Date: Sat, 20 Sep 2014 17:32:22 +0200 Subject: [PATCH] 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 --- .../main/java/com/google/gerrit/client/change/Hashtags.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/Hashtags.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/Hashtags.java index 1d80413e5e..bc84984e57 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/Hashtags.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/change/Hashtags.java @@ -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()