Please have a look at the following post:
You can simply change the forwarded_host part of the redirect URL being constructed.
forwarded_host