Fix issues in account actions (#1599)

Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
José Alberto Hernández
2022-12-18 13:06:03 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent 1da2630974
commit eae1b350b7
52 changed files with 335 additions and 298 deletions
@@ -159,6 +159,17 @@ export class BreadcrumbComponent implements OnInit, AfterViewInit {
url = currentUrl;
}
}
if (url !== undefined) {
if (url.length > 8 && url.search(`/clients/`) > 0 ) {
const replaceGeneral = `/general/`;
let currentUrlTemp = url.replace(replaceGeneral, `/`);
currentUrlTemp = currentUrlTemp.replace(`//`, `/`);
currentUrlTemp += `/general`;
const replaceDoubleSlash = `/general/general`;
currentUrlTemp = currentUrlTemp.replace(replaceDoubleSlash, `/general`);
url = currentUrlTemp;
}
}
const breadcrumb: Breadcrumb = {
label: breadcrumbLabel,