One of the routes in my Angular 6 application is defined as below -
{ path: 'product/:productId', component: ProductPageComponent }
Now, I want to handle URLs like /product/BEV15733/Raw-Apple-Cider-Vinegar
with this (i.e. I want to ignore the third path segment). However, when navigating, Angular throws error like -
Error: Cannot match any routes. URL Segment: 'product/BEV15733/Raw-Apple-Cider-Vinegar'