diff --git a/public/app/features/explore/state/epics.ts b/public/app/features/explore/state/epics.ts index 95ce32f11cf..a31474f81cc 100644 --- a/public/app/features/explore/state/epics.ts +++ b/public/app/features/explore/state/epics.ts @@ -16,7 +16,7 @@ import { SeriesData } from '@grafana/ui/src/types/data'; import { EpicDependencies } from 'app/store/configureStore'; const convertToWebSocketUrl = (url: string) => { - const protocol = window.location.protocol === 'https' ? 'wss://' : 'ws://'; + const protocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://'; let backend = `${protocol}${window.location.host}${config.appSubUrl}`; if (backend.endsWith('/')) { backend = backend.slice(0, backend.length - 1);