[Solved] PLS HELP ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: ‘r2’ Error: Cannot match any routes. URL Segment: ‘r2’


<ion-item *ngFor="let recipe of recipes" [routerLink]="["https://stackoverflow.com/", recipe.id]">

[routerLink]="["https://stackoverflow.com/", recipe.id]" means you’re redirecting to the root route. But your expected route is a child of the route.

Use this instead :

[routerLink]="recipe.id"

0

solved PLS HELP ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: ‘r2’ Error: Cannot match any routes. URL Segment: ‘r2’