SuiteCRM 8 Reload the page after logout

I want to reload the login page after logging out so that it wont cause error when you try to login again.

here is the following code for logout

doLogout(): void {
this.auth.logout();
window.location.reload();

}