bugfix + deprecated templates.getTemplateNameFromUrl