emilol / angular-crumbs

Angular Breadcrumb
https://emilol.github.io/angular-crumbs
MIT License
46 stars 46 forks source link

Entering url directly getting bad URL in breadcrumb #4

Closed tonywr71 closed 7 years ago

tonywr71 commented 7 years ago

I have a strange situation I was hoping someone could help me with. When I navigate around in my application, everything works the way it is supposed to. But when I enter a url on the command line that contains a space in an argument, the router link in the breadcrumb is wrong.

Here is an example of my URL: http://localhost:12345/my-abs/trans/tran/AFG%202013-1/keymetrics

After entering the URL and going directly to the page, I hover over the parent breadcrumb link, and it shows this: http://localhost:12345/my-abs/trans/tran/AFG%25202013-1

...and of course if I click the link, the new route fails. It is putting an extra "25" in the link of the parent.

I would have had a go at fixing this myself (and sending you the changes), but it looks like this repository isn't the same one that feeds into angular2_crumbs in npm.

tonywr71 commented 7 years ago

Ok, it seems like it is URL encoding the percent character...

tonywr71 commented 7 years ago

Well, it looks like I was using an old version of the component. Will close this and upgrade.