laravel / fortify

Backend controllers and scaffolding for Laravel authentication.
https://laravel.com/docs/fortify
MIT License
1.61k stars 294 forks source link

Redirect after register oder login doesn't work with 'home' => '/profil' in fortify-config #538

Closed kakojak closed 4 months ago

kakojak commented 4 months ago

Fortify Version

1.21.2

Laravel Version

11.6.0

PHP Version

8.2

Database Driver & Version

MySQL

Description

Redirect after register oder login doesn't work with 'home' => '/profil' in fortify-config I also activated the EmailVerification. I'm using Laravel Fortify without Jetstream.

Steps To Reproduce

When I make a registration or login its redirect me to / instead of /profil

driesvints commented 4 months ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.

kakojak commented 4 months ago

So I think it is a bug in the Laravel Fortify package if you install it without Jetstream.

NatachaH commented 2 months ago

Did you find any solution about that ?

In my research I found that it use the default Laravel middleware "RedirectIfAuthenticated" inside the method "defaultRedirectUri". But the weird thing is that the default Uri are fixed and I'm not sure how to changed them...