Skip to content

Commit

Permalink
Fix #262: Switch Network doesn t work
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-farre committed Dec 19, 2024
1 parent 91609f5 commit c1c6798
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion controllers/MobileAppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use humhub\components\Controller;
use humhub\modules\fcmPush\helpers\MobileAppHelper;
use Yii;
use yii\helpers\Url;

class MobileAppController extends Controller
{
Expand All @@ -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());
}
}
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c1c6798

Please sign in to comment.