OnDeviceReady $state.current.name is null

HI,
Say I’m in state A. On quit and relaunch of the app I should be routed to state A only.
How can I achieve this,
Any help would be appreciated