Return the state of the language toggle rather than the previous route when changing language in vue

This commit is contained in:
Kevin MacMartin 2024-05-20 13:16:27 -04:00
parent d9ccb3eaa8
commit 9aa4ca556a

View file

@ -51,8 +51,7 @@ Route::group([ 'prefix' => 'dashboard' ], function() {
*/
Route::get('/language/{lang}', function($lang) {
Language::setSessionLanguage($lang);
return redirect()->back();
return Language::setSessionLanguage($lang);
});
Route::get('/{vue?}', function() {