ngx-sp-infra 6.5.4 → 6.5.5
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.
|
@@ -9742,7 +9742,10 @@ class SearchInputComponent {
|
|
|
9742
9742
|
const hostname = window.location.host.includes("localhost") ? "siscandesv6.sispro.com.br" : window.location.host;
|
|
9743
9743
|
const baseURL = `https://${hostname}/SisproErpCloud`;
|
|
9744
9744
|
if (item.RotaV6 && item.RotaV6 !== '') {
|
|
9745
|
-
|
|
9745
|
+
// Normaliza os nomes para remover acentos
|
|
9746
|
+
const nomeProjeto = item.Projeto.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
|
|
9747
|
+
const nomeProjetoRota = item.RotaV6.split('/')[0].normalize('NFD').replace(/[\u0300-\u036f]/g, '');
|
|
9748
|
+
let isCorporativo = nomeProjeto != nomeProjetoRota;
|
|
9746
9749
|
const targetRoute = `${baseURL}/${isCorporativo ? 'Corporativo/' : ''}${item.RotaV6}`;
|
|
9747
9750
|
window.location.assign(targetRoute);
|
|
9748
9751
|
}
|