[bug965049] - removed window.location.protocol to get right URL