Skip to content

Commit

Permalink
[Fleet] Override branch in doc links (elastic#119514) (elastic#119561)
Browse files Browse the repository at this point in the history
Co-authored-by: Jen Huang <its.jenetic@gmail.com>

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: Jen Huang <its.jenetic@gmail.com>
  • Loading branch information
3 people authored Nov 24, 2021
1 parent daa4ee3 commit 53315b2
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 53315b2

Please sign in to comment.