Преглед на файлове

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

master
Shawn преди 3 години
родител
ревизия
f5c0d7da5e
променени са 1 файла, в които са добавени 3 реда и са изтрити 5 реда
  1. 3
    5
      react/features/app/getRouteToRender.web.js

+ 3
- 5
react/features/app/getRouteToRender.web.js Целия файл

80
         }
80
         }
81
     } else {
81
     } else {
82
         // Web: if the welcome page is disabled, go directly to a random room.
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
     return Promise.resolve(route);
88
     return Promise.resolve(route);

Loading…
Отказ
Запис