Skip to content

Commit f7bb0e6

Browse files
committed
graphql URL should include Drupal.settings.pathPrefix, used in multilingual sites
1 parent 8fb4cb3 commit f7bb0e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function boot() {
1010
ReactDOM.render(<GraphiQL fetcher={graphQLFetcher} />, document.getElementById('graphqleditor'));
1111

1212
function graphQLFetcher(graphQLParams) {
13-
return fetch(Drupal.settings.basePath + 'graphql', {
13+
return fetch(Drupal.settings.basePath + Drupal.settings.pathPrefix + 'graphql', {
1414
credentials: 'include',
1515
method: 'post',
1616
headers: { 'Content-Type': 'application/json' },

0 commit comments

Comments
 (0)