I have a guard protecting some routes.
In case when user has no access to the specified route the guard should do the following:
- Do nothing if navigation was made inside Angular application (
routerLink
) - Navigate to home page if it's standard browser navigation (it causes Angular initialization)
What should I check to know which execution path to choose?