Browse Source

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 years ago
parent
commit
f10d42f8e4
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      react/features/app/actions.js

+ 2
- 0
react/features/app/actions.js View File

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

Loading…
Cancel
Save