changing parsed url so that it works with heroku