Portal GUI Stuck in "Loading..." Screen
[portal.git] / portal-FE-os / src / index.html
index 5c8085f..e0dd76c 100644 (file)
           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("<base href='/ecompportal/ecompportal/' />");
+       
+          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("<base href='/ecompportal/' />");
-          addBaseHref(base);
-
-        }
+        
       </script>
   <meta charset="utf-8">
   <title>ONAP Portal</title>
-  <base href="/">
 
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <link rel="icon" type="image/x-icon" href="favicon.ico">
-  <link rel="stylesheet" href="styles.19ce2a92d11ceb6c5db4.css">
 </head>
 <body>
   <app-root>Loading...</app-root>