Fix urls in templates