From fe50e5aef62a3c2e941fd84cd5ae444b93b799ca Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Wed, 4 Feb 2015 11:55:27 +0100 Subject: [PATCH] fix for failed selection of terms in faceted search with vocabularies --- htroot/yacysearchtrailer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htroot/yacysearchtrailer.java b/htroot/yacysearchtrailer.java index 9137ec1d4..30e4718b9 100644 --- a/htroot/yacysearchtrailer.java +++ b/htroot/yacysearchtrailer.java @@ -459,7 +459,7 @@ public class yacysearchtrailer { break; } nav = "%2Fvocabulary%2F" + navname + "%2F" + MultiProtocolURL.escape(Tagging.encodePrintname(name)).toString(); - if (!theSearch.query.modifier.toString().contains("/vocabulary/"+navname+"/"+name)) { + if (!theSearch.query.modifier.toString().contains("/vocabulary/" + navname + "/" + name.replace(' ', '_'))) { prop.put("nav-vocabulary_" + navvoccount + "_element_" + i + "_on", 1); prop.put(fileType, "nav-vocabulary_" + navvoccount + "_element_" + i + "_modifier", nav); } else {