fix #1: TemplateVariables not recognized in "by-location" link

as said in the commit, fixes #1 - not totally awesome but it works ;)