If redirected location is relative then try using the last scheme/host to resolve it.