Get and use redirect variable from auth error

i’m sorry but not for me i’m redirecting to $url only, this is like , after login, that $redirectUrl doesn’t exist anymore.

after a few tests, that’s it, the $redirectUrl doesn’t exist anymore after if ($this->request->is('post')) {