Procházet zdrojové kódy

fix: broken redirect for url with params when welcome page disable

factor2
Shawn před 3 roky
rodič
revize
f5c0d7da5e
1 změnil soubory, kde provedl 3 přidání a 5 odebrání
  1. 3
    5
      react/features/app/getRouteToRender.web.js

+ 3
- 5
react/features/app/getRouteToRender.web.js Zobrazit soubor

@@ -80,11 +80,9 @@ function _getWebWelcomePageRoute(state) {
80 80
         }
81 81
     } else {
82 82
         // Web: if the welcome page is disabled, go directly to a random room.
83
-
84
-        let href = window.location.href;
85
-
86
-        href.endsWith('/') || (href += '/');
87
-        route.href = href + generateRoomWithoutSeparator();
83
+        let url = new URL(window.location.href);
84
+        url.pathname += generateRoomWithoutSeparator();
85
+        route.href = url.href;
88 86
     }
89 87
 
90 88
     return Promise.resolve(route);

Načítá se…
Zrušit
Uložit