Skip to content

Commit 95205a0

Browse files
k7ragavasikowitz
andauthored
feat(ui): Update ExternalUrlButton to include self-hosted gitlab URLs (#12734)
Co-authored-by: Andrew Sikowitz <[email protected]>
1 parent 887e30f commit 95205a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

datahub-web-react/src/app/entity/shared/ExternalUrlButton.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import UrlButton from './UrlButton';
55

66
const GITHUB_LINK = 'github.com';
77
const GITHUB = 'GitHub';
8-
const GITLAB_LINK = 'gitlab.com';
8+
const GITLAB_LINK = 'gitlab.';
99
const GITLAB = 'GitLab';
1010

1111
interface Props {

datahub-web-react/src/app/entityV2/shared/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export function getExternalUrlDisplayName(entity: GenericEntityProperties | null
103103
// Scoping these constants
104104
const GITHUB_LINK = 'github.com';
105105
const GITHUB_NAME = 'GitHub';
106-
const GITLAB_LINK = 'gitlab.com';
106+
const GITLAB_LINK = 'gitlab.';
107107
const GITLAB_NAME = 'GitLab';
108108

109109
const externalUrl = entity?.properties?.externalUrl;

0 commit comments

Comments
 (0)