From 952ecfb032ea20cf5ba721f8c53a07a2e10eb98a Mon Sep 17 00:00:00 2001 From: Jason Skomorowski Date: Mon, 6 Oct 2014 21:48:37 -0400 Subject: [PATCH] Refine facet behavior in the Topic demo MKWS-277 --- examples/htdocs/topic.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/htdocs/topic.html b/examples/htdocs/topic.html index af4e1d6..ff88fb4 100644 --- a/examples/htdocs/topic.html +++ b/examples/htdocs/topic.html @@ -34,6 +34,9 @@ return mkws.getParameterByName('q', obj[0]); } }); + Handlebars.registerHelper('mkws-topicurl', function(topic) { + return window.location.pathname + "?q=" + encodeURIComponent(topic); + }); -- 1.7.10.4