should fix redirect path bug on heroku instance.