You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click in redirect with parameter, the variable will be passed to the component
Click in redirect without parameter, the component will note that there's no variable and will cancel the navigation
Try manually navigating to the component "/query" and no component will render at all.
What is expected?
Redirection to the root ('/') component (it should be 'Main' in this case)
What is actually happening?
Redirection to an empty component (as the 'from' gives out an empty route)
I was trying to fetch some data from the backend, I needed a boolean flag from the server whether or not should I render this view at all, or just display some error message and handle the exception, calling next(new Error()) and handling the error accordingly with router.onError(); works when I'm accessing the component within the application, but doesn't when I navigate manually to the component.
I can work around this just doing next(from.path), but it won't trigger the .onError() I mentioned earlier.