emit previous url/state if state is not logout state