Adding an inelegant hack to determine why redirect URLs are being generated as HTTP.