Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(jaas) redirect to about blank when close meeting opened in iframe

bogdandarie1279c5b0da38
diff --git a/react/features/app/actions.web.js b/react/features/app/actions.web.js
index b427b6a8d7..c2d6b481ea 100644
--- a/react/features/app/actions.web.js
+++ b/react/features/app/actions.web.js
@@ -20,6 +20,7 @@ import {
parseURIString,
parseURLParams
} from '../base/util';
+import { inIframe } from '../base/util/iframeUtils';
import { isVpaasMeeting } from '../jaas/functions';
import {
NOTIFICATION_TIMEOUT_TYPE,
@@ -164,7 +165,13 @@ export function maybeRedirectToWelcomePage(options: Object = {}) {
// if close page is enabled redirect to it, without further action
if (enableClosePage) {
if (isVpaasMeeting(getState())) {
- dispatch(redirectToStaticPage('/'));
+ const isOpenedInIframe = inIframe();
+
+ if (isOpenedInIframe) {
+ window.location = 'about:blank';
+ } else {
+ dispatch(redirectToStaticPage('/'));
+ }
return;
}