Skip to content

Commit 3755850

Browse files
committed
Use the fragment for the URL
1 parent 2190059 commit 3755850

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphene_django/templates/graphene/graphiql.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
// Collect the URL parameters
3434
var parameters = {};
35-
window.location.search.substr(1).split('&').forEach(function (entry) {
35+
window.location.hash.substr(1).split('&').forEach(function (entry) {
3636
var eq = entry.indexOf('=');
3737
if (eq >= 0) {
3838
parameters[decodeURIComponent(entry.slice(0, eq))] =
@@ -41,7 +41,7 @@
4141
});
4242
// Produce a Location query string from a parameter object.
4343
function locationQuery(params) {
44-
return '?' + Object.keys(params).map(function (key) {
44+
return '#' + Object.keys(params).map(function (key) {
4545
return encodeURIComponent(key) + '=' +
4646
encodeURIComponent(params[key]);
4747
}).join('&');

0 commit comments

Comments
 (0)