Removing hardcoded URLS in templates