0 Replies Latest reply on Jun 4, 2020 7:31 AM by kushubham9

    VCD 10.1 - Angular route failing in the extension

    kushubham9 Novice


      I am facing routing issue with my extension in vCD 10.1


      We use angular Route Guards in our extension to guard some provider specific endpoints from tenant users. Based on some logic, we redirect the request to a different route (Component)


      When calling the router.navigate() in the routeguard, I get the following error on console.

      Error: Cannot match any routes. URL Segment: {}



      I tried with the vmware seed app as well. Just added a custom route guard to an existing route, but still it is failing.


      canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean {


         this.router.navigate([this.activatedRoute, 'about'])

        .catch(err => {



         return false;


      const ROUTES: Routes = [



         path: "", component: SubnavComponent, children: [

        { path: "", redirectTo: "status", pathMatch: "full" },

        { path: "status", component: StatusComponent, canActivate: [RouterGuardService] },

        { path: "about", component: AboutComponent }





      After I install the extension and click on it in the provider view, I see the following error on console

      bundle.js:1 Error: Cannot match any routes. URL Segment: 'Vk13YXJl/plugin/about'



      This has started with vCD 10.1.

      In earlier releases it was working fine.


      Any help here?