diff --git a/static/main.js b/static/main.js index 64e257bd..ce3d4257 100644 --- a/static/main.js +++ b/static/main.js @@ -107,8 +107,8 @@ function render () { pathName = pathName.split('/') const baseUrl = pathName[0] if (baseUrl !== 'graphiql') { - url = `${window.location.protocol}//${host}//${baseUrl}${window.GRAPHQL_ENDPOINT}` - subscriptionUrl = `${websocketProtocol}//${host}//${baseUrl}${window.GRAPHQL_ENDPOINT}` + url = `${window.location.protocol}//${host}/${baseUrl}${window.GRAPHQL_ENDPOINT}` + subscriptionUrl = `${websocketProtocol}//${host}/${baseUrl}${window.GRAPHQL_ENDPOINT}` } else { url = `${window.location.protocol}//${host}${window.GRAPHQL_ENDPOINT}` subscriptionUrl = `${websocketProtocol}//${host}${window.GRAPHQL_ENDPOINT}`