From 7a4ba95dcbf4cd6b0686641024fd625a680222dd Mon Sep 17 00:00:00 2001 From: SayedTahsin Date: Tue, 9 Jul 2024 12:42:49 +0600 Subject: [PATCH] updated api domain console domain url Signed-off-by: SayedTahsin --- layouts/_default/embed_console.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/layouts/_default/embed_console.html b/layouts/_default/embed_console.html index f49c6df5bc..01a8ef666d 100644 --- a/layouts/_default/embed_console.html +++ b/layouts/_default/embed_console.html @@ -107,9 +107,12 @@ if(hostname==='appscode.ninja') acSignInButton.setAttribute('href', 'https://appscode.ninja/accounts/user/login'); + else if(hostname==='localhost') + acSignInButton.setAttribute('href', 'http://bb.test:3003/accounts/user/login'); else acSignInButton.setAttribute('href', 'https://appscode.com/accounts/user/login'); + const urlParams = new URLSearchParams(window.location.search); const color = urlParams.get('color'); const text = urlParams.get('text'); @@ -143,8 +146,8 @@ const protocol = window.location.protocol; const port = window.location.port; - const apiDomain = protocol + "//api." + hostname + (port? ":3003" : ""); - const consoleDomain = protocol + "//console." + hostname + (port? ":5990" : ""); + const apiDomain = protocol + "//" + hostname + (port? ":3003" : "") + '/api'; + const consoleDomain = protocol + "//" + hostname + (port? ":5990" : "") + '/console'; acSignInButton.classList.add('is-loading');