@smartsoft001/angular 1.1.710 → 1.1.711
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.
|
@@ -2603,15 +2603,20 @@
|
|
|
2603
2603
|
this.router.events.subscribe(function (event) {
|
|
2604
2604
|
if (event instanceof i3.NavigationEnd) {
|
|
2605
2605
|
var data = event;
|
|
2606
|
-
var title = _this._baseTitle + '
|
|
2606
|
+
var title = _this._baseTitle + '|'
|
|
2607
2607
|
+ data.urlAfterRedirects.split('/')
|
|
2608
2608
|
.filter(function (x) { return x && x.trim(); })
|
|
2609
2609
|
.map(function (x) {
|
|
2610
|
+
x = x.split('?')[0];
|
|
2610
2611
|
var key = 'ROUTES.' + x;
|
|
2611
2612
|
var translate = _this.translate.instant(key);
|
|
2612
2613
|
return key === translate ? x : translate;
|
|
2613
2614
|
})
|
|
2614
|
-
.join('
|
|
2615
|
+
.join('|');
|
|
2616
|
+
title = title
|
|
2617
|
+
.split('|')
|
|
2618
|
+
.filter(function (x) { return x && x.trim(); })
|
|
2619
|
+
.join('|');
|
|
2615
2620
|
_this.titleService.setTitle(title);
|
|
2616
2621
|
AppService._titleSource$.next(title);
|
|
2617
2622
|
}
|