X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;ds=inline;f=examples%2Fhtdocs%2Ftopic.html;h=642941b5a96c31f5afe528b54d55e7c23209db4f;hb=fd5d0f9300f108fd5d1b867ef6bd187d16bb05c7;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 @@