Remove hard coding of redirect url to now use the host  header and use the port