Redirect route link instead of rendering component inline

I have a /A/B/B.ts component and I can create route link to it in root component using <a href="" [routeLink]="['ABLink']">A - B</a> and <router-outlet>. The problem is the content of the component is rendered inline and I want it to redirect just like a regular link. When I try Open in New Tab on the link, I get a 404 not found error for localhost/A/B path. What should I do?

Sample plnkr

If you click “Role Search” it works fine but if you right click and select Open in New Window you get a 404 error.

Leave a Reply

Notify of