Expand my Community achievements bar.

AEM Angular SPA deeplink routing

Avatar

Level 1

Hello Guys,

I am trying to deep link routing path in AEM SPA similar to pure angular applications.The reason I need to pass some information(Id) in the URL and does'nt want to use query parameter in URL like "/testpage?id=124"

Pure Angular Routing

 { path: 'test-page/:Id', component: testComponent }
 
But the issue I see here is that AEM SPA routing is defined in dynamic way.Can we have manual routing in AEM SPA or how can we achieve the above scenario with dynamic routing or can we have a semi auto routing.
 
const routes: Routes = [
  {
    matcher: AemPageMatcher,
    component: PageComponent,
    resolve: {
      path: AemPageDataResolver
    }
  }
];
1 Reply

Avatar

Level 1

Hello Guys,

I really appreciate if anyone have answer to my question.