@propmix/profet-common-header 3.2.0-beta.2 → 3.2.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -565,7 +565,7 @@ class HeaderComponent {
565
565
  let sessionUrl = this._headerSer.headerConfig.signOutUrl;
566
566
  if (this._headerSer.headerConfig.enableLastUrlRedirection) {
567
567
  const separator = sessionUrl.includes('?') ? '&' : '?';
568
- sessionUrl = sessionUrl + separator + 'returnUrl=' + encodeURIComponent(window.location.href);
568
+ sessionUrl = sessionUrl + separator + 'redirectUrl=' + encodeURIComponent(window.location.href);
569
569
  }
570
570
  // Only add sessionExpired params if it is NOT a manual logout
571
571
  if (!isManual) {
@@ -688,10 +688,10 @@ class HeaderComponent {
688
688
  clearInterval(this.logoutCheckInterval);
689
689
  this.logoutEvent.emit();
690
690
  let sessionUrl = this._headerSer.headerConfig.signOutUrl;
691
- if (this._headerSer.headerConfig.enableLastUrlRedirection) {
692
- const separator = sessionUrl.includes('?') ? '&' : '?';
693
- sessionUrl = sessionUrl + separator + 'returnUrl=' + encodeURIComponent(window.location.href);
694
- }
691
+ // if (this._headerSer.headerConfig.enableLastUrlRedirection) {
692
+ // const separator = sessionUrl.includes('?') ? '&' : '?';
693
+ // sessionUrl = sessionUrl + separator + 'returnUrl=' + encodeURIComponent(window.location.href);
694
+ // }
695
695
  signOut({ global: true, oauth: { redirectUrl: sessionUrl } })
696
696
  .then((data) => {
697
697
  window.open(sessionUrl, '_self');