diff --git a/dashboard/src/js/client.js b/dashboard/src/js/client.js index 51c87be79..d84f7c39e 100644 --- a/dashboard/src/js/client.js +++ b/dashboard/src/js/client.js @@ -2714,7 +2714,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout this.setToken(null); // start oidc flow - window.location.href = this.apiOrigin + '/openid/auth?client_id=' + (this.apiOrigin ? 'development' : 'dashboard') + '&scope=openid email profile&response_type=code token&redirect_uri=' + window.location.origin + '/authcallback.html'; + window.location.href = this.apiOrigin + '/openid/auth?client_id=' + ('<%= apiOrigin %>' ? 'development' : 'dashboard') + '&scope=openid email profile&response_type=code token&redirect_uri=' + window.location.origin + '/authcallback.html'; }; Client.prototype.logout = function () {