rajaramtt / ng7-dynamic-breadcrumb

Angular 10 Dynamic Breadcrumbs
MIT License
42 stars 31 forks source link

updateBreadcrumb with query string for the URL not working #35

Open AmerQwaider opened 3 years ago

AmerQwaider commented 3 years ago

i have a node in the Breadcrumb and that node have URL with query string but unfortunately this cause an issue the(? and =) will convert to another chars


var breadcrumbs = [
            {
                "label": "Home",
                "url": "/Home/Home"
            },
            {
                "label": "Menu",
                "url": "/Home/Menus"
            },
            {
                "label": "Sections",
                "url": "/Home/Menus/Sections?MenuID=1"
            },
            {
                "label": "Items",
                "url": ""
            }
        ];

Error: Cannot match any routes. URL Segment: 'xx/xxxxx/Sections%3FMenuID%3D2

sakthivelraja commented 3 years ago

I have the same issue as well. Any plans of releasing a fix for this @rajaramtt . Thanks

rajaramtt commented 3 years ago

@AmerQwaider @sakthivelraja Please create and provide stackblitz angular reproducible URL!

AmerQwaider commented 3 years ago

@rajaramtt am trying to do that

AmerQwaider commented 3 years ago

@rajaramtt can u plz help me to check this example https://stackblitz.com/edit/angular-ivy-21pfv7?file=src/app/app.component.ts

sakthivelraja commented 3 years ago

@rajaramtt

I've reproduced the bug in this stackblitz example url.

Demo for the same is here

Both Page One and Page Two have breadcrumbs. I have added a query parameter to the home url for the pageOne path so if you click on the "Page One" link on the home page and go to page one and then click on the "Home" link in the breadcrumb you'll see it breaking.

Please let me know if you need any other info.

AmerQwaider commented 3 years ago

any update @rajaramtt

rajaramtt commented 3 years ago

@AmerQwaider I’m a little tied up with office work, Will check and update you!

AmerQwaider commented 3 years ago

okii thanks

codenannu commented 2 years ago

@rajaramtt Any update?

yousef-aliswed commented 2 years ago

@rajaramtt I've same issue here so please when you are planning to do this enhancement.

Thanks.