Commit dd8c6f73 authored by Iker Hurtado's avatar Iker Hurtado
Browse files

Bugfix of the previous commit (2)

parent 41057a23
Pipeline #27456 passed with stages
in 6 seconds
......@@ -436,7 +436,7 @@
console.log('API host: ',API_HOST,' USER_COOKIE_DOMAIN: ',USER_COOKIE_DOMAIN);
let API_BASE_URL = API_HOST+'v1.0/';// for the old host -> API_HOST+'v1.0/';
if (document.location.href.indexOf('gui') > 0)
if (document.location.href.indexOf('nomad-coe.eu') > 0)
API_BASE_URL = API_HOST+'api/v1.0/';
document.querySelector('#guest-user a').href = API_BASE_URL+'saml/?sso2';
......
......@@ -25,7 +25,7 @@ else if (document.location.href.indexOf('gui') > 0){
console.log('API host: ',API_HOST,' USER_COOKIE_DOMAIN: ',USER_COOKIE_DOMAIN);
let API_BASE_URL = API_HOST+'v1.0/';// for the old host -> API_HOST+'v1.0/';
if (document.location.href.indexOf('gui') > 0)
if (document.location.href.indexOf('nomad-coe.eu') > 0)
API_BASE_URL = API_HOST+'api/v1.0/';
document.querySelector('#guest-user a').href = API_BASE_URL+'saml/?sso2';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment