浏览代码

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.
master
Saúl Ibarra Corretgé 7 年前
父节点
当前提交
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 {

正在加载...
取消
保存