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 17d5df7 commit a98ff35Copy full SHA for a98ff35
graphql/enterprise/index.html
@@ -171,9 +171,10 @@ <h3>Create a <a href="https://help.github.com/articles/creating-a-personal-acces
171
function graphQLFetcher(graphQLParams) {
172
// Determine the API URL for this GitHub Enterprise server
173
174
+ const hostnames = location.hostname.split('.')
175
+
176
if (hostnames[0] === "pages") {
- // subdomain isolation enabled
- const hostnames = location.hostname.split('.')
177
+ // subdomain isolation enabled, so remove the first part of the URL
178
hostnames.shift()
179
const apiHost = location.protocol + '//' + hostnames.join('.')
180
} else {
0 commit comments