Removing hardcoded urls in templates