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

View File

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