From 5d98155b5f9ef0476c676c343dbedcf5e158b590 Mon Sep 17 00:00:00 2001 From: Jack Westbrook Date: Fri, 29 Oct 2021 12:23:05 +0200 Subject: [PATCH] Plugins Catalog: Set external manage link to installation tab (#40994) * feat(catalog): set external manage link to installation tab * fix(catalog): use pluginCatalogURL when getting external manage link --- .../components/InstallControls/ExternallyManagedButton.tsx | 2 +- public/app/features/plugins/admin/helpers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/plugins/admin/components/InstallControls/ExternallyManagedButton.tsx b/public/app/features/plugins/admin/components/InstallControls/ExternallyManagedButton.tsx index cbc727393b0..5aa72575014 100644 --- a/public/app/features/plugins/admin/components/InstallControls/ExternallyManagedButton.tsx +++ b/public/app/features/plugins/admin/components/InstallControls/ExternallyManagedButton.tsx @@ -9,7 +9,7 @@ type ExternallyManagedButtonProps = { }; export function ExternallyManagedButton({ pluginId, pluginStatus }: ExternallyManagedButtonProps) { - const externalManageLink = getExternalManageLink(pluginId); + const externalManageLink = `${getExternalManageLink(pluginId)}/?tab=installation`; if (pluginStatus === PluginStatus.UPDATE) { return ( diff --git a/public/app/features/plugins/admin/helpers.ts b/public/app/features/plugins/admin/helpers.ts index 09a13c33a09..34f08f93146 100644 --- a/public/app/features/plugins/admin/helpers.ts +++ b/public/app/features/plugins/admin/helpers.ts @@ -180,7 +180,7 @@ export function mapToCatalogPlugin(local?: LocalPlugin, remote?: RemotePlugin, e }; } -export const getExternalManageLink = (pluginId: string) => `https://grafana.com/grafana/plugins/${pluginId}`; +export const getExternalManageLink = (pluginId: string) => `${config.pluginCatalogURL}${pluginId}`; export enum Sorters { nameAsc = 'nameAsc',