Angular - Router navigate canceled without reason

Viewed 6592

I have an angular (4.2.5) app, and at some point in my code, I do this :

this._appService
    .post('/createhero/save', opts)
    .subscribe(
        (resData: any) => 
        {   
            this._router.navigate(['home']);
        }
    );

The router call to navigate() doesn't work - nothing happens. I enabled route debug, and this is what I get :

Error

So the navigation is canceled without given reason. In others components, I have the same kind of navigate() (some in observable callbacks too) which works well. The route /home works as well.

I'm starting to run out of ideas, and I don't even know why the navigate() won't work in this case.

1 Answers
Related