Skip to content

Commit 4077d96

Browse files
committed
Fixed url loading
1 parent 5f539ec commit 4077d96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/graphql_server/static/graphiql.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@
151151
otherParams[k] = parameters[k];
152152
}
153153
}
154-
var fetchURL = locationQuery(otherParams);
154+
var fetchURL = window.location.pathname + locationQuery(otherParams);
155155

156156
function httpUrlToWebSockeUrl(url) {
157-
const parsedURL = new URL(url);
157+
const parsedURL = new URL(url, window.location.href);
158158
const protocol = parsedURL.protocol === "http:" ? "ws:" : "wss:";
159159
parsedURL.protocol = protocol;
160160
parsedURL.hash = "";

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy