History State Declaration Order

When you have a deep history state, the one you want to go back to, should be declared before the state you are leaving…