add location.href fallback for Safari