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: broken redirect for url with params when welcome page disable

Shawnf5c0d7da5eae
diff --git a/react/features/app/getRouteToRender.web.js b/react/features/app/getRouteToRender.web.js
index 0a390db19a..20e051a267 100644
--- a/react/features/app/getRouteToRender.web.js
+++ b/react/features/app/getRouteToRender.web.js
@@ -80,11 +80,9 @@ function _getWebWelcomePageRoute(state) {
}
} else {
// Web: if the welcome page is disabled, go directly to a random room.
-
- let href = window.location.href;
-
- href.endsWith('/') || (href += '/');
- route.href = href + generateRoomWithoutSeparator();
+ let url = new URL(window.location.href);
+ url.pathname += generateRoomWithoutSeparator();
+ route.href = url.href;
}
return Promise.resolve(route);