change redirect url so it can work online, but won't work on localhost