Fixed https redirect for Firefox