Skip to content
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

Nested lazy loaded state cannot be accessed via url #3146

Closed
lencyforce opened this issue Nov 11, 2016 · 2 comments
Closed

Nested lazy loaded state cannot be accessed via url #3146

lencyforce opened this issue Nov 11, 2016 · 2 comments
Milestone

Comments

@lencyforce
Copy link

lencyforce commented Nov 11, 2016

I have a lazy loaded parent state:

{
    name: 'home',
    url: '/home',
    lazyLoad: ...
}

which will return another lazy loaded child state in the lazyLoad promise:

{
    name: 'home.publish',
    url: '/publish',
    lazyLoad: ...
}

Now that I can successfully navigate to "/home/publish/edit" using $state.go('home.publish.edit') before the parent state lazy loading taking place, however, directly accessing "/home/publish/edit" in the browser gives me the error "No such state 'home.publish'" after both the parent and child's lazy loading finished.

@christopherthielen
Copy link
Contributor

I believe this is a duplicate of ui-router/react#7 and is fixed by ui-router/core@1c6220c

I hope to have a new release for ng1 next week.

@christopherthielen christopherthielen added this to the 1.0.0-beta.4 milestone Nov 11, 2016
@christopherthielen
Copy link
Contributor

Closing as this has already been fixed in ui-router-core/master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants