mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-25 08:51:25 -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) {
|
Route::get('/language/{lang}', function($lang) {
|
||||||
Language::setSessionLanguage($lang);
|
return Language::setSessionLanguage($lang);
|
||||||
return redirect()->back();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::get('/{vue?}', function() {
|
Route::get('/{vue?}', function() {
|
||||||
|
|
Loading…
Reference in a new issue