Fix public-key url in template context