X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=examples%2Fhtdocs%2Ftopic.html;h=ff88fb4e7ca4bc5039788486f7dd51623ad68404;hb=e41cdaf18a6fa7cb61034c77902cb2b0177eb108;hp=af4e1d61a0076825fde2998853437aa74397d4ec;hpb=4cc79170722705d8409996f225e1cec94193138a;p=mkws-moved-to-github.git 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); + });