ngx-sp-infra 6.5.3 → 6.5.4
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.
|
@@ -9743,16 +9743,13 @@ class SearchInputComponent {
|
|
|
9743
9743
|
const baseURL = `https://${hostname}/SisproErpCloud`;
|
|
9744
9744
|
if (item.RotaV6 && item.RotaV6 !== '') {
|
|
9745
9745
|
let isCorporativo = item.RotaV6.split('/')[0] != item.Projeto;
|
|
9746
|
-
console.log('item:', item);
|
|
9747
|
-
console.log('isCorporativo:', isCorporativo);
|
|
9748
9746
|
const targetRoute = `${baseURL}/${isCorporativo ? 'Corporativo/' : ''}${item.RotaV6}`;
|
|
9749
|
-
|
|
9750
|
-
window.location.replace(targetRoute);
|
|
9747
|
+
window.location.assign(targetRoute);
|
|
9751
9748
|
}
|
|
9752
9749
|
else {
|
|
9753
9750
|
// Se a RotaOS começar com '/', não adiciona outra '/'
|
|
9754
9751
|
const targetRoute = `${baseURL}${item.RotaOS[0] === '/' ? '' : '/'}${item.RotaOS}`;
|
|
9755
|
-
window.location.
|
|
9752
|
+
window.location.assign(targetRoute);
|
|
9756
9753
|
}
|
|
9757
9754
|
}
|
|
9758
9755
|
highlightList(pesquisa) {
|