From f86dd128e0cc6bb041942e17b0042c5a2f1879f4 Mon Sep 17 00:00:00 2001 From: David Kaltschmidt Date: Mon, 30 Jan 2017 13:05:28 +0100 Subject: [PATCH] Hotfix for URL issue Pertains to #2154 --- client/app/scripts/utils/web-api-utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/app/scripts/utils/web-api-utils.js b/client/app/scripts/utils/web-api-utils.js index 0d0e8e85a..0983eff79 100644 --- a/client/app/scripts/utils/web-api-utils.js +++ b/client/app/scripts/utils/web-api-utils.js @@ -63,7 +63,10 @@ export function basePathSlash(urlPath) { let apiPath; let websocketUrl; const isIframe = window.location !== window.parent.location; -const isStandalone = window.location.pathname === '/' || /\/(.+).html/.test(window.location.pathname); +const isStandalone = window.location.pathname === '/' + || window.location.pathname === '/demo/' + || window.location.pathname === '/scoped/' + || /\/(.+).html/.test(window.location.pathname); const wsProto = location.protocol === 'https:' ? 'wss' : 'ws'; if (isIframe || isStandalone) {