ngx-sp-auth 4.18.5 → 4.18.6
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/fesm2022/ngx-sp-auth.mjs
CHANGED
|
@@ -3661,7 +3661,20 @@ class MenuLateralComponent {
|
|
|
3661
3661
|
this._authService.logout();
|
|
3662
3662
|
}
|
|
3663
3663
|
getExternalUrl(url, isOutroModulo) {
|
|
3664
|
-
|
|
3664
|
+
if (url.toLowerCase().includes('redirect')) {
|
|
3665
|
+
console.log(isOutroModulo ? `https://${window.location.host}/SisproErpCloud/${url}` : `${this.HostServerOutSystems == "" ? `https://${window.location.host}` : this.HostServerOutSystems}/${url}`);
|
|
3666
|
+
console.log(isOutroModulo);
|
|
3667
|
+
console.log(url);
|
|
3668
|
+
console.log(`https://${window.location.host}/SisproErpCloud/${url}`);
|
|
3669
|
+
console.log(this.HostServerOutSystems);
|
|
3670
|
+
console.log(`${this.HostServerOutSystems}/${url}`);
|
|
3671
|
+
}
|
|
3672
|
+
if (url.toLocaleLowerCase() === "home") {
|
|
3673
|
+
return (`https://${window.location.host}/SisproErpCloud/${url}`);
|
|
3674
|
+
}
|
|
3675
|
+
else {
|
|
3676
|
+
return (isOutroModulo ? `https://${window.location.host}/SisproErpCloud/${url}` : `${this.HostServerOutSystems == "" ? `https://${window.location.host}` : this.HostServerOutSystems}/${url}`);
|
|
3677
|
+
}
|
|
3665
3678
|
}
|
|
3666
3679
|
constroiRegrasDynamicMenu(menus) {
|
|
3667
3680
|
const home = { id: 1, label: "Início", descricao: "Tela inicial", icon: "casa", route: "home", isExternal: false, isSelected: this._router.url.includes("home"), isOutroModulo: false };
|