diff --git a/Events.php b/Events.php index 6ab26bc..b97c702 100644 --- a/Events.php +++ b/Events.php @@ -169,6 +169,9 @@ public static function onAccountTopMenuInit(Event $event) '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 0fae695..2c8a16b 100644 --- a/controllers/MobileAppController.php +++ b/controllers/MobileAppController.php @@ -3,7 +3,6 @@ namespace humhub\modules\fcmPush\controllers; use humhub\components\Controller; -use humhub\libs\Html; use humhub\modules\fcmPush\helpers\MobileAppHelper; use Yii; @@ -15,10 +14,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 - // Force full page refresh to trigger the onLayoutAddonInit event - return $this->renderContent(sprintf( - '', - Yii::$app->request->referrer, - )); + return $this->htmlRedirect(Yii::$app->request->referrer); } }