on-internet
← Community

Exclude specific path from routing in Angular

Stack Overflow ·

My Angular route config is as below: export const routes: Routes = [ { path: 'mgmt', ... }, { path: 'about', ... }, { path: '**', component: PageNotFoundCmp } ]; But now on a page, there's a link to help pages, which are static resources hosted on the same server: <a href="/help/en/index.html" target="_blank"> With the above route config, apparently it will be matched to others ** - page not found. If we cannot host help resources in another domain, is there any way to exclude /help/** path from Angular routing?

Comments

Sign in or sign up to comment and upvote.

No comments yet.