Просмотр исходного кода

Fix processing context root

Yours truly refactored routing in https://github.com/jitsi/jitsi-meet/pull/3222
and broke it. When a bare room is entered the pathname was not updated when
applying the default URL.
j8
Saúl Ibarra Corretgé 6 лет назад
Родитель
Сommit
f10d42f8e4
1 измененных файлов: 2 добавлений и 0 удалений
  1. 2
    0
      react/features/app/actions.js

+ 2
- 0
react/features/app/actions.js Просмотреть файл

@@ -124,6 +124,8 @@ function _appNavigateToOptionalLocation(
124 124
             // FIXME Turn location's host, hostname, and port properties into
125 125
             // setters in order to reduce the risks of inconsistent state.
126 126
             location.hostname = defaultLocation.hostname;
127
+            location.pathname
128
+                = defaultLocation.pathname + location.pathname.substr(1);
127 129
             location.port = defaultLocation.port;
128 130
             location.protocol = defaultLocation.protocol;
129 131
         } else {

Загрузка…
Отмена
Сохранить