After the admin session expires, the system now correctly redirects to the specified admin login URL, addressing the issue where the redirect would sometimes point to an incorrect path.