modifies URL substring for heroku app