Try the following. Link helper is my own helper to add the / us context path
Handlebars.registerHelper('link', function(option,parameter) { return '/us' + option.hash.target; }); Handlebars.registerHelper('concat', function() { var outStr = ''; for(var arg in arguments){ if(typeof arguments[arg]!='object'){ outStr += arguments[arg]; } } return outStr; });
Then I called it that. My url having puppies
{{link target=(concat '/' url)}}
Then finally I got a conclusion similar to this / us / puppies
lingeshram
source share