Fix location.href plus base issue with IE