From f0467b4b74faa3a2069e05a6bf2e5d1a54dda8a0 Mon Sep 17 00:00:00 2001 From: James Homer Date: Mon, 8 Apr 2019 21:41:23 +0100 Subject: [PATCH] Use ugly endpoint --- wp-graphiql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-graphiql.php b/wp-graphiql.php index 9dfcc55..8ecd6ca 100644 --- a/wp-graphiql.php +++ b/wp-graphiql.php @@ -121,7 +121,7 @@ public function enqueue_react_app() { 'wpGraphiQLSettings', array( 'nonce' => wp_create_nonce( 'wp_rest' ), - 'graphqlEndpoint' => trailingslashit( get_bloginfo( 'url' ) ) . \WPGraphQL\Router::$route, + 'graphqlEndpoint' => trailingslashit( get_bloginfo( 'url' ) ) . 'index.php?' . \WPGraphQL\Router::$route, ) );