I have an Angular 6 SPA. Periodically, the app performs an action behind the scenes in an iframe (to silently refresh an OAuth token). Each time my app does this, it redirects to the "/" route. This is undesirable behavior for the reason that if a user is in the middle of completing a form, he will lose his form and be redirected. I believe that the redirect is happening as a result of something in my code; perhaps a Guard. Is there good a way to determine the source of a route redirect in Angular? Continue reading...