From 95205a01a0c0636d5bcd1cfc7d641a06a67c13bc Mon Sep 17 00:00:00 2001 From: k7ragav <67264597+k7ragav@users.noreply.github.com> Date: Wed, 12 Mar 2025 23:13:52 +0100 Subject: [PATCH] feat(ui): Update ExternalUrlButton to include self-hosted gitlab URLs (#12734) Co-authored-by: Andrew Sikowitz --- datahub-web-react/src/app/entity/shared/ExternalUrlButton.tsx | 2 +- datahub-web-react/src/app/entityV2/shared/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datahub-web-react/src/app/entity/shared/ExternalUrlButton.tsx b/datahub-web-react/src/app/entity/shared/ExternalUrlButton.tsx index d821cbfc01..3bafc41893 100644 --- a/datahub-web-react/src/app/entity/shared/ExternalUrlButton.tsx +++ b/datahub-web-react/src/app/entity/shared/ExternalUrlButton.tsx @@ -5,7 +5,7 @@ import UrlButton from './UrlButton'; const GITHUB_LINK = 'github.com'; const GITHUB = 'GitHub'; -const GITLAB_LINK = 'gitlab.com'; +const GITLAB_LINK = 'gitlab.'; const GITLAB = 'GitLab'; interface Props { diff --git a/datahub-web-react/src/app/entityV2/shared/utils.ts b/datahub-web-react/src/app/entityV2/shared/utils.ts index 0ff2b418e1..7b7605c83c 100644 --- a/datahub-web-react/src/app/entityV2/shared/utils.ts +++ b/datahub-web-react/src/app/entityV2/shared/utils.ts @@ -103,7 +103,7 @@ export function getExternalUrlDisplayName(entity: GenericEntityProperties | null // Scoping these constants const GITHUB_LINK = 'github.com'; const GITHUB_NAME = 'GitHub'; - const GITLAB_LINK = 'gitlab.com'; + const GITLAB_LINK = 'gitlab.'; const GITLAB_NAME = 'GitLab'; const externalUrl = entity?.properties?.externalUrl;