X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=examples%2Fhtdocs%2Ftopic.html;h=642941b5a96c31f5afe528b54d55e7c23209db4f;hb=ff92ff2110c048ff58ba34381241e99eeaef80fd;hp=af4e1d61a0076825fde2998853437aa74397d4ec;hpb=4cc79170722705d8409996f225e1cec94193138a;p=mkws-moved-to-github.git diff --git a/examples/htdocs/topic.html b/examples/htdocs/topic.html index af4e1d6..642941b 100644 --- a/examples/htdocs/topic.html +++ b/examples/htdocs/topic.html @@ -34,8 +34,11 @@ return mkws.getParameterByName('q', obj[0]); } }); + Handlebars.registerHelper('mkws-topicurl', function(topic) { + return window.location.pathname + "?q=" + encodeURIComponent(topic); + }); - - @@ -62,7 +65,7 @@