X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=portal-FE-os%2Fsrc%2Findex.html;h=e0dd76c172d295cf8eb819a17465374aa132745f;hb=f629d7d8521e3714d0a9177e1f8b92aa066e5d46;hp=5c8085ff2416dc4317f97d23a3782938af18203a;hpb=eda60ff2bff74588c0c9369b29d98ff3625ccbc4;p=portal.git diff --git a/portal-FE-os/src/index.html b/portal-FE-os/src/index.html index 5c8085ff..e0dd76c1 100644 --- a/portal-FE-os/src/index.html +++ b/portal-FE-os/src/index.html @@ -58,27 +58,17 @@ head.insertBefore(baseNode,head.childNodes[0] || null); window.base = base; } - if (window.location.href.includes('webtest.csp.att.com') || window.location.href.includes('www.e-access.att.com') || window.location.href.includes('ecomp.e-access.att.com')) { - //change to webjuction context - var base = window.location.pathname.substring(0, nthIndex(window.location.pathname, "/", 3) + 1); - //document.write(""); + + var base = window.location.pathname.substring(0, nthIndex(window.location.pathname,"/", 2) + 1); addBaseHref(base); - } else { - //not webjunction - var base = window.location.pathname.substring(0, nthIndex(window.location.pathname,"/", 1) + 1); - //document.write(""); - addBaseHref(base); - - } + ONAP Portal - - Loading...