From 7cd5708ea789fd0a90926d14cea8f9a2118b8639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=8F=D0=BD=20=D0=9C=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Fri, 29 Apr 2022 12:02:05 -0500 Subject: [PATCH] fix: Fixes loading recommendedBrowsers page. (#11465) * fix: Fixes loading recommendedBrowsers page. Fixes loading the page and its resources when using html base (cdn). --- index.html | 2 +- .../components/DefaultUnsupportedDesktopBrowser.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index c628d16481..3585a77067 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@ // redirected to a page that is known to have no newer js syntax. if (window.navigator.userAgent.match(/(MSIE|Trident)/)) { var roomName = encodeURIComponent(window.location.pathname); - window.location.href = "static/recommendedBrowsers.html" + "?room=" + roomName; + window.location.pathname = 'static/recommendedBrowsers.html'; } window.indexLoadedTime = window.performance.now(); diff --git a/react/features/unsupported-browser/components/DefaultUnsupportedDesktopBrowser.js b/react/features/unsupported-browser/components/DefaultUnsupportedDesktopBrowser.js index 80836d3de2..c62c0fdaeb 100644 --- a/react/features/unsupported-browser/components/DefaultUnsupportedDesktopBrowser.js +++ b/react/features/unsupported-browser/components/DefaultUnsupportedDesktopBrowser.js @@ -15,7 +15,7 @@ class DefaultUnsupportedDesktopBrowser extends Component { * @returns {void} */ componentDidMount() { - window.location.href = '/static/recommendedBrowsers.html'; + window.location.pathname = 'static/recommendedBrowsers.html'; } /**