I think it will be better to redirect to the root. `window.location.replace("/");`