Login/Home pages not destroyed when login/logout in Ionic 5 router
Easiest solution that would work, you should navigate to the route with "replaceUrl" NavigationExtras
this.router.navigate(['/home'], { replaceUrl: true });
This replaces the current state in the history, and therefore your Login page will be destroyed. Basically it sets a new root.
Reference