diff --git a/components/dashboard/src/settings/Integrations.tsx b/components/dashboard/src/settings/Integrations.tsx index e68e6ec12d198f..54d2de18586bdd 100644 --- a/components/dashboard/src/settings/Integrations.tsx +++ b/components/dashboard/src/settings/Integrations.tsx @@ -547,8 +547,15 @@ export function GitIntegrationModal(props: ({ const updateHostValue = (host: string) => { if (mode === "new") { - setHost(host); - setRedirectURL(callbackUrl(host)); + + let newHostValue = host; + + if (host.startsWith("https://")) { + newHostValue = host.replace("https://",""); + } + + setHost(newHostValue); + setRedirectURL(callbackUrl(newHostValue)); setErrorMessage(undefined); } }