We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f539ec commit 4077d96Copy full SHA for 4077d96
src/graphql_server/static/graphiql.html
@@ -151,10 +151,10 @@
151
otherParams[k] = parameters[k];
152
}
153
154
- var fetchURL = locationQuery(otherParams);
+ var fetchURL = window.location.pathname + locationQuery(otherParams);
155
156
function httpUrlToWebSockeUrl(url) {
157
- const parsedURL = new URL(url);
+ const parsedURL = new URL(url, window.location.href);
158
const protocol = parsedURL.protocol === "http:" ? "ws:" : "wss:";
159
parsedURL.protocol = protocol;
160
parsedURL.hash = "";
0 commit comments