Removing hardcoded URLs in templates