use window.location.reload instead of re-setting the href