Skip to content

Regex for Pattern with Activated Route like bills?id=123 #110

@johnny68

Description

@johnny68

So, I was trying to use this with my dynamic URL
The regex that I am trying to work with is

/users/bills?id=[0-9]+$

It is valid at https://regex101.com/r/rmYFfG/1
I tried to follow this Link but it didn't work.
Further I tried
breadcrumbService.addCallbackForRouteRegex('/users/bills\?id=[0-9]+$', this.getName); getName(id: string): string { return 'User : ' + id; }

But it still not working
Output is always like

users/bills?id=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions