Skip to content

Commit

Permalink
Merge pull request #141 from humhub/139-opening-push-redirect-from-ot…
Browse files Browse the repository at this point in the history
…her-instance-bug

Navigate over UniversalOpenerController for push redirects
  • Loading branch information
luke- committed Nov 29, 2023
2 parents 9edcbee + d42161d commit ed63324
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/util/notifications/channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ class RedirectNotificationChannel extends NotificationChannel {
UniversalOpenerController opener = UniversalOpenerController(url: payload);
await opener.initHumHub();
if (isNewRouteSameAsCurrent) {
WebViewGlobalController.value!
.loadUrl(urlRequest: URLRequest(url: Uri.parse(opener.url), headers: opener.humhub.customHeaders));
navigatorKey.currentState!.pushNamed(WebViewApp.path, arguments: opener);
return;
}
navigatorKey.currentState!.pushNamed(WebViewApp.path, arguments: opener);
Expand Down

0 comments on commit ed63324

Please sign in to comment.