diff --git a/client/app/scripts/utils/web-api-utils.js b/client/app/scripts/utils/web-api-utils.js index 1fc606694..0d0e8e85a 100644 --- a/client/app/scripts/utils/web-api-utils.js +++ b/client/app/scripts/utils/web-api-utils.js @@ -63,7 +63,7 @@ export function basePathSlash(urlPath) { let apiPath; let websocketUrl; const isIframe = window.location !== window.parent.location; -const isStandalone = window.location.pathname === '/'; +const isStandalone = window.location.pathname === '/' || /\/(.+).html/.test(window.location.pathname); const wsProto = location.protocol === 'https:' ? 'wss' : 'ws'; if (isIframe || isStandalone) {