you're telling nunjucks to safe-render a var with HTML code in it, which means it'll show it as string, not as a real anchor link.