Skip to content

Commit

Permalink
[Fleet] Override branch in doc links (#119514)
Browse files Browse the repository at this point in the history
Co-authored-by: Jen Huang <its.jenetic@gmail.com>
  • Loading branch information
2 people authored and kibanamachine committed Nov 24, 2021
1 parent daa4ee3 commit ca2191b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ export function registerLanguageClients(
description: integration.description,
type: 'ui_link',
shipper: 'language_clients',
uiInternalPath: integration.docUrlTemplate.replace('{branch}', branch),
// Documentation for `main` branches is still published at a `master` URL.
uiInternalPath: integration.docUrlTemplate.replace(
'{branch}',
branch === 'main' ? 'master' : branch
),
isBeta: false,
icons,
categories: ['elastic_stack', 'custom', 'language_client'],
Expand Down

0 comments on commit ca2191b

Please sign in to comment.