I'm currently on a project that uses the base Laravel authentication provided by running php artisan make:auth
and I'm experiencing issues with trying to use the reset password functionality. The password reset email is sent out perfectly fine but the URL that's generated on the email when clicked returns a 404 (Also happens when copying the URL at the bottom of the email). Is there a way to modify the URL generated in the email to the "Working URL" as shown below? This has been proven to work by manually changing the "Current URL" to the "Working URL" in the browser once the link in the password reset emails has been clicked.
Current URL: [App Path]/[Email]/password/reset/[Token]
Working URL: [App Path]/[locale]/password/reset/[Token]?email=[Email]
The project does contain information for language switching which is why [locale]
needs to be included in the URL but running the following on my route which works for all blade.php
file extensions except for the password reset URL.
Route::group([
'prefix' => '{locale}',
'where' => ['locale' => '[a-zA-Z]{2}'],
'middleware' => 'setlocale'], function() {
Auth::routes();
});
Any advice or links to documentation that talks about this would be helpful as I've not been able to find anything myself.