mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-21 15:42:31 -05:00
Return the state of the language toggle rather than the previous route when changing language in vue
This commit is contained in:
parent
d9ccb3eaa8
commit
9aa4ca556a
1 changed files with 1 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue