[#167] route user to last visited page after re-login with cookie