I have dynamic routes that could contain slashes or anti-slashes inside parameters , for example:
http://localhost:4200/dashboard/T64/27D I should navigate to a page with route T64/27D
Here's how I navigate
this.router.navigate(['dashboard/'+this.groupListPage[0].code]);
this.groupList[0].code contain T64/27D
Actually Angular separate T64 and 27D as 2 different pages.
Here's the error:
ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'dashboard/T64/27D'
Error: Cannot match any routes. URL Segment: 'dashboard/T64/27D'
How can I tell to Angular that / is a part of the param ?
dashboard/:param1/:param2'in your state, and recompose it afterwards usingparam1 + '/' + param2. A workaround in a way, but it should work