angular-ui / ui-router

The de-facto solution to flexible routing with nested views in AngularJS
http://ui-router.github.io/
MIT License
13.56k stars 3.01k forks source link

Navigating to an "orphaned" state from a sticky hierarchy clears the ui-view tree #3618

Closed what-is-a-crow closed 4 years ago

what-is-a-crow commented 6 years ago

This is a (check one box):

My version of UI-Router is: 1.0.13 (everything 1.0.0+)

Bug Report

Current Behavior:

(Pre-1.0.0)

Given I have a sticky state hierarchy And a state that lacks a parent (modal / flyout) When I attempt to navigate to the "orphaned" state with reload: true Then I see that the exited hierarchy (ui-views) are all destroyed

Expected Behavior:

Then I see that the exited hierarchy is preserved

Link to Plunker that reproduces the issue:

http://plnkr.co/edit/ZaZe2PkveaYEtLBBurTH?p=preview

Notes

I'm not sure in which library this change happened and am more than happy to close this issue and open it with the correct repository.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues may be reopened.

Thank you for your contributions.