Replace hard coded urls in templates