-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bread crumb link goes to wrong url #64
Comments
works if I insert a # into the template anchor's href
|
That's curious. Please what is your version of
|
The problem is that he's using hrefs in his links instead ui-srefs. I was just going to create an issue for this, but this'll do. A touch more information. hrefs require a page reload to work, which if you don't have url rewriting setup will break url routing. ui-srefs don't require a reload, as it uses angular's normal route. |
The values of hrefs are directly generated from the method @jondthompson I think you speak about the html5mode where hrefs don't include '#' and the whole application need url writing on the server side. With html5mode disabled, navigation in AngularJS is based on anchors who don't need a reload with either href or ui-sref (the only purpose of this directive is to generated an url in a href attribute). |
Please upgrade the ui-router to 0.2.12. There is a bug when using both Angular 1.3.2 and ui-router 0.2.11 (see angular-ui/ui-router#1397). @ansorensen do you use ui-router 0.2.11 too ? |
Was using 0.2.11, just updated to 0.2.13 and my issue was resolved. |
I updated my UI-router to 0.2.13 and my issue was resolved. |
I'm using angular-breadcrumb with ui state router. I have anchor with ui-sref="app.page", which becomes href="/page", and it works perfectly, taking me to http://localhost/app/#/page. However, the breadcrumb for app.page only has href="/page", and it takes me to http://localhost/page, which 404s.
my state provider is
When I'm on the child page, and click the breadcrumb for app.page (which has the same href as the main nav), I end up at the wrong URL. It looks like what UI Router takes as '/' is the root of the angular app ('http:/localhost/app/#/') but whereas breadcrumb interprets '/' as 'http:/localhost'. The latter is not even in my app.
The text was updated successfully, but these errors were encountered: