Thank you to everyone who provided suggestions. I decided to take a different approach that offers users a better UI experience. Instead of placing the reroute logic in the ngOnInit
method, I added a button that users can click to trigger the reroute. This way, users have the opportunity to view the page's content and choose to navigate away at their convenience.
@ruben and @naren provided excellent tips though, be sure to try them if you have the same issue!