Skip to content

Commit

Permalink
Add base path to rollup index pattern endpoint's request to regular i…
Browse files Browse the repository at this point in the history
…ndex pattern endpoint (#39745)
  • Loading branch information
jen-huang committed Jun 27, 2019
1 parent bca05f8 commit 2bc3d3a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ export function registerFieldsForWildcardRoute(server) {
} = request.query;

// Format call to standard index pattern `fields for wildcard`
const standardRequestQuery = querystring.stringify({ pattern, meta_fields: metaFields });
const standardRequest = {
url: `/api/index_patterns/_fields_for_wildcard?${querystring.stringify({ pattern, meta_fields: metaFields })}`,
url: `${request.getBasePath()}/api/index_patterns/_fields_for_wildcard?${standardRequestQuery}`,
method: 'GET',
headers: request.headers,
};
Expand Down

0 comments on commit 2bc3d3a

Please sign in to comment.