@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.
- package/esm2020/lib/header/header.component.mjs +6 -6
- package/fesm2015/propmix-profet-common-header.mjs +5 -5
- package/fesm2015/propmix-profet-common-header.mjs.map +1 -1
- package/fesm2020/propmix-profet-common-header.mjs +5 -5
- package/fesm2020/propmix-profet-common-header.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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 + '
|
|
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
|
-
|
|
693
|
-
|
|
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');
|