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:
parent
7eda31315f
commit
f10d42f8e4
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue