LogoutResponse Redirect Not Working #2206
Unanswered
GlenWarren
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'd like to redirect the user back to the login page after logging out, rather than to a blank screen:
redirect(/)
presumably.As instructed in the docs here: https://laravel.com/docs/9.x/fortify#customizing-authentication-redirects
I have added the following code to
App\Providers\FortifyServiceProvider
:But it is not working.
I have also tried a number of other redirects, such as:
return redirect()->route('platform.main');
return redirect()->route('platform.login');
return redirect('/admin/login');
But basically, it's not even reaching this code. This file is registered correctly.
Any advice?
Beta Was this translation helpful? Give feedback.
All reactions