fix redirect location (we appending /http://.... to path rather than simply using '/')