ng7-dynamic-breadcrumb icon indicating copy to clipboard operation
ng7-dynamic-breadcrumb copied to clipboard

updateBreadcrumb with query string for the URL not working

Open AmerQwaider opened this issue 3 years ago • 10 comments

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

AmerQwaider avatar Mar 26 '21 12:03 AmerQwaider

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

sakthivelraja avatar Aug 19 '21 19:08 sakthivelraja

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

rajaramtt avatar Aug 20 '21 02:08 rajaramtt

@rajaramtt am trying to do that

AmerQwaider avatar Aug 22 '21 16:08 AmerQwaider

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

AmerQwaider avatar Aug 22 '21 17:08 AmerQwaider

@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.

sakthivelraja avatar Aug 26 '21 20:08 sakthivelraja

any update @rajaramtt

AmerQwaider avatar Sep 01 '21 10:09 AmerQwaider

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

rajaramtt avatar Sep 01 '21 11:09 rajaramtt

okii thanks

AmerQwaider avatar Sep 01 '21 12:09 AmerQwaider

@rajaramtt Any update?

codenannu avatar Dec 16 '21 10:12 codenannu

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

Thanks.

yousef-aliswed avatar Mar 06 '22 06:03 yousef-aliswed