diff --git a/Events.php b/Events.php index b97c702..a36da48 100644 --- a/Events.php +++ b/Events.php @@ -167,7 +167,6 @@ public static function onAccountTopMenuInit(Event $event) 'url' => ['/fcm-push/mobile-app/instance-opener'], 'icon' => 'arrows-h', 'sortOrder' => 699, // Just before "Logout" - 'isActive' => true, 'isVisible' => true, 'htmlOptions' => [ 'data-pjax' => '0', // Force full page refresh to trigger the onLayoutAddonInit event diff --git a/controllers/MobileAppController.php b/controllers/MobileAppController.php index 2c8a16b..9d694cd 100644 --- a/controllers/MobileAppController.php +++ b/controllers/MobileAppController.php @@ -5,6 +5,7 @@ use humhub\components\Controller; use humhub\modules\fcmPush\helpers\MobileAppHelper; use Yii; +use yii\helpers\Url; class MobileAppController extends Controller { @@ -14,6 +15,6 @@ public function actionInstanceOpener() Yii::$app->session->set(MobileAppHelper::SESSION_VAR_SHOW_OPENER, 1); // Stay on the same page, because when we come back from the mobile app to this instance - return $this->htmlRedirect(Yii::$app->request->referrer); + return $this->htmlRedirect(Url::home()); } } diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 62c596f..170f3b6 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog ========= +2.1.1 (December 19, 2024) +------------------------- +- Fix #262: Switch Network doesn't work + 2.1.1 (December 16, 2024) ------------------------- - Fix #58: iOS mobile app detection for iPad devices