fix location.href in sandbox