From adc5965b32ca7510899c64fce00a676772217858 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 7 Sep 2022 08:57:32 +0200 Subject: [PATCH] fix: use ip address instead of window location --- apps/ui/src/routes/sources/[id]/_Github.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ui/src/routes/sources/[id]/_Github.svelte b/apps/ui/src/routes/sources/[id]/_Github.svelte index e9b229290..c98ee4f4f 100644 --- a/apps/ui/src/routes/sources/[id]/_Github.svelte +++ b/apps/ui/src/routes/sources/[id]/_Github.svelte @@ -46,8 +46,8 @@ customPort: source.customPort }); const { organization, htmlUrl } = source; - const { fqdn } = settings; - const host = dev ? getAPIUrl() : fqdn ? fqdn : `http://${window.location.host}` || ''; + const { fqdn, ipv4, ipv6 } = settings; + const host = dev ? getAPIUrl() : fqdn ? fqdn : `http://${ipv4 || ipv6}` || ''; const domain = getDomain(fqdn); let url = 'settings/apps/new';