diff --git a/controller/Controller.class.php b/controller/Controller.class.php index 7872cf22..0db0148d 100644 --- a/controller/Controller.class.php +++ b/controller/Controller.class.php @@ -94,7 +94,7 @@ class Controller $router->any('/list/subscribe', 'MailActions::executeSubscribe'); $router->get('/list/confirm/{hash}', 'MailActions::executeConfirm'); - $router->post('/language', 'i18nActions::setCulture'); + $router->post('/set-culture', 'i18nActions::setCulture'); $permanentRedirects = [ '/lbry-osx-latest.dmg' => '/get', diff --git a/controller/action/i18nActions.class.php b/controller/action/i18nActions.class.php index f7fc492a..a78c5f55 100644 --- a/controller/action/i18nActions.class.php +++ b/controller/action/i18nActions.class.php @@ -28,6 +28,6 @@ class i18nActions extends Actions Session::unsetKey(Session::KEY_USER_CULTURE); } - return [null, null]; + return Controller::redirect('/'); } } diff --git a/view/template/nav/_globalItems.php b/view/template/nav/_globalItems.php index 0a0ef25d..0b340c33 100644 --- a/view/template/nav/_globalItems.php +++ b/view/template/nav/_globalItems.php @@ -23,10 +23,12 @@ GitHub