Skip to content Skip to sidebar Skip to footer

Navigatebyurl From Parent To Child Route Not Working

I would navigate to a sub component in my app. this.router.navigateByUrl(this.rightsService.pathToRedirectTo).then((data) => { console.log(data) }); It's working when I pass

Solution 1:

Check please what the return your ViewGuard when you try to redirect to /mainRoute/subRoute/1, seems that route guard can return false and it could be a reason of this problem, also in case that you use any interceptors for this route or for some parent components, check what the value that interceptors return too.


Post a Comment for "Navigatebyurl From Parent To Child Route Not Working"