@nettyapps/ntybase 0.1.13 → 0.1.14
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.
|
@@ -1460,7 +1460,9 @@ class NettyAgGridBase {
|
|
|
1460
1460
|
this.commonService.goBack();
|
|
1461
1461
|
}
|
|
1462
1462
|
gotoURL(routePrefix, rightSidenav = [], parameters, type, dialogComponent = null, isNewTab = false, isPopup = this.isEmbedded()) {
|
|
1463
|
-
|
|
1463
|
+
const baseHref = this.environment.getBaseHref().endsWith('/')
|
|
1464
|
+
? this.environment.getBaseHref().slice(0, -1) // Sondaki / işaretini kaldır
|
|
1465
|
+
: this.environment.getBaseHref();
|
|
1464
1466
|
const navigationExtras = {
|
|
1465
1467
|
queryParams: {
|
|
1466
1468
|
parameters: JSON.stringify(parameters),
|
|
@@ -1471,7 +1473,7 @@ class NettyAgGridBase {
|
|
|
1471
1473
|
};
|
|
1472
1474
|
if (isNewTab) {
|
|
1473
1475
|
const fullUrl = this.router
|
|
1474
|
-
.createUrlTree([
|
|
1476
|
+
.createUrlTree([baseHref, ...routePrefix, ...rightSidenav], navigationExtras)
|
|
1475
1477
|
.toString();
|
|
1476
1478
|
window.open(fullUrl, '_blank');
|
|
1477
1479
|
return;
|
|
@@ -1497,7 +1499,7 @@ class NettyAgGridBase {
|
|
|
1497
1499
|
}
|
|
1498
1500
|
// Log control
|
|
1499
1501
|
if (rightSidenav.length == 0 || rightSidenav[0] === 'log') {
|
|
1500
|
-
this.router.navigate([
|
|
1502
|
+
this.router.navigate([baseHref, ...routePrefix, ...rightSidenav], navigationExtras);
|
|
1501
1503
|
return;
|
|
1502
1504
|
}
|
|
1503
1505
|
// In all other cases, open the side menu
|
|
@@ -1516,11 +1518,13 @@ class NettyAgGridBase {
|
|
|
1516
1518
|
});
|
|
1517
1519
|
}
|
|
1518
1520
|
popupGotoURL(urlSegments) {
|
|
1519
|
-
|
|
1521
|
+
const baseHref = this.environment.getBaseHref().endsWith('/')
|
|
1522
|
+
? this.environment.getBaseHref().slice(0, -1) // Sondaki / işaretini kaldır
|
|
1523
|
+
: this.environment.getBaseHref();
|
|
1520
1524
|
this.router.navigate([
|
|
1521
1525
|
{
|
|
1522
1526
|
outlets: {
|
|
1523
|
-
primary: [
|
|
1527
|
+
primary: [baseHref, ...urlSegments],
|
|
1524
1528
|
rightSidenav: null,
|
|
1525
1529
|
},
|
|
1526
1530
|
},
|