Skip to content
Eric Rasmussen edited this page Oct 19, 2018 · 10 revisions

Setting idm URLs needs idm.renderAsLoggedOut() called

Relavent commit: https://github.com/unl/wdntemplates/commit/aa5308282ea69ba402577b2c2b2ef9988dbca2f9#diff-90e17c895d145ec1edb98ce019db3c6f

Before

require(['idm'], function(idm) {
          idm.setLoginURL('?LOGIN');
          idm.setLogoutURL('?LOGOUT');
      });

After

require(['idm'], function(idm) {
          idm.setLoginURL('?LOGIN');
          idm.setLogoutURL('?LOGOUT');
          idm.renderAsLoggedOut();
      });

// or

WDN.setPluginParam('idm', 'login', '?login');
WDN.setPluginParam('idm', 'logout', '?logout');
Clone this wiki locally