ngx-sp-auth 4.22.1 → 4.22.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.
@@ -3664,11 +3664,13 @@ class MenuLateralComponent {
3664
3664
  this._authService.logout();
3665
3665
  }
3666
3666
  getExternalUrl(url, isOutroModulo) {
3667
+ if (url.includes('https://'))
3668
+ return url;
3667
3669
  return (isOutroModulo ? `https://${window.location.host}/SisproErpCloud/${url}` : `${this.HostServerOutSystems == "" ? `https://${window.location.host}` : this.HostServerOutSystems}/${url}`);
3668
3670
  }
3669
3671
  constroiRegrasDynamicMenu(menus) {
3670
- const home = { id: 1, label: "Início", descricao: "Tela inicial", icon: "casa", route: "home", isExternal: false, isSelected: this._router.url.includes("home"), isOutroModulo: false };
3671
- const cloud = { id: 1, label: "Ir para a Cloud", descricao: "Cloud OS", icon: "nuvem", route: `https://${window.location.host}/SisproErp/`, isExternal: false, isSelected: this._router.url.includes("cloud"), isOutroModulo: true };
3672
+ const home = { id: 0, label: "Início", descricao: "Tela inicial", icon: "casa", route: "home", isExternal: false, isSelected: this._router.url.includes("home"), isOutroModulo: false };
3673
+ const cloud = { id: 1, label: "Ir para a Cloud", descricao: "Cloud OS", icon: "p-nuvem", route: `https://${window.location.host}/SisproErp/`, isExternal: true, isSelected: this._router.url.includes("cloud"), isOutroModulo: true };
3672
3674
  menus.unshift(cloud);
3673
3675
  menus.unshift(home);
3674
3676
  return menus;