Skip to content

Commit

Permalink
better url code
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed May 13, 2021
1 parent e7e9ea4 commit 183c173
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ export const getLinks = (docLinks: DocLinksStart) => {
const { DOC_LINK_VERSION, ELASTIC_WEBSITE_URL } = docLinks;
const docsBase = `${ELASTIC_WEBSITE_URL}guide/en`;
const painlessDocsBase = `${docsBase}/elasticsearch/painless/${DOC_LINK_VERSION}`;
const kibanaDocsBase = `${docsBase}/kibana/${DOC_LINK_VERSION}`;

return {
runtimePainless: `${docsBase}/kibana/master/managing-index-patterns.html#runtime-fields`,
runtimePainless: `${kibanaDocsBase}/managing-index-patterns.html#runtime-fields`,
painlessSyntax: `${painlessDocsBase}/painless-lang-spec.html`,
};
};

0 comments on commit 183c173

Please sign in to comment.