Closed GlennVanSchil closed 6 years ago
The problem was with my regex itself. The question marque had to be escaped
breadcrumbService.addFriendlyNameForRouteRegex('^/projects/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/fields?page=[0-9]+$', 'Fields');
To
breadcrumbService.addFriendlyNameForRouteRegex('^/projects/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/fields\\?page=[0-9]+$', 'Fields');
I've configured the following breadcrumb
for URL
I also have pagination
whenever the pagination is added to the url, it also show in my breadcrumb
Update
Found an answer to this in the closed issues.
https://github.com/gmostert/ng2-breadcrumb/issues/28
So I've added an extra friendly name
But it still appears in the breadcrumb
[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} is the regex for a UUID