Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

makapaka's avatar

Spark redirect to login after registration doesn't work

Such a simple thing wont work!

After registration, there is simple redirect

return redirect($this->redirectPath('/login'));

It keeps giving me 404 "sorry..." error page and in the URL it shows myapp/undefined

Spark routes.php:

$router->get('/login', 'Auth\LoginController@showLoginForm')->name('login');

In that function LoginController@showLoginForm I have put a log message and that is working correctly! The Spark function simply says

return view('spark::auth.login');

But 404 ?? What the heck is happening

0 likes
0 replies

Please or to participate in this conversation.