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.
This commit is contained in:
Saúl Ibarra Corretgé 2018-08-14 21:29:32 +02:00 committed by Saúl Ibarra Corretgé
parent 7eda31315f
commit f10d42f8e4
1 changed files with 2 additions and 0 deletions

View File

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