@nettyapps/ntybase 0.1.12 → 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.
@@ -1240,6 +1240,7 @@ class NettyAgGridBase {
1240
1240
  alertService = inject(AlertService);
1241
1241
  dialog = inject(MatDialog);
1242
1242
  sysFunctionProxy = inject(SysfunctionProxy);
1243
+ environment = inject(EnvironmentProxy);
1243
1244
  initAgGrid_extension() {
1244
1245
  if (this.allowEdit() == false && (this.popupValid() ?? false) == false) {
1245
1246
  this.columnDefs().pop();
@@ -1459,6 +1460,9 @@ class NettyAgGridBase {
1459
1460
  this.commonService.goBack();
1460
1461
  }
1461
1462
  gotoURL(routePrefix, rightSidenav = [], parameters, type, dialogComponent = null, isNewTab = false, isPopup = this.isEmbedded()) {
1463
+ const baseHref = this.environment.getBaseHref().endsWith('/')
1464
+ ? this.environment.getBaseHref().slice(0, -1) // Sondaki / işaretini kaldır
1465
+ : this.environment.getBaseHref();
1462
1466
  const navigationExtras = {
1463
1467
  queryParams: {
1464
1468
  parameters: JSON.stringify(parameters),
@@ -1469,7 +1473,7 @@ class NettyAgGridBase {
1469
1473
  };
1470
1474
  if (isNewTab) {
1471
1475
  const fullUrl = this.router
1472
- .createUrlTree([...routePrefix, ...rightSidenav], navigationExtras)
1476
+ .createUrlTree([baseHref, ...routePrefix, ...rightSidenav], navigationExtras)
1473
1477
  .toString();
1474
1478
  window.open(fullUrl, '_blank');
1475
1479
  return;
@@ -1495,7 +1499,7 @@ class NettyAgGridBase {
1495
1499
  }
1496
1500
  // Log control
1497
1501
  if (rightSidenav.length == 0 || rightSidenav[0] === 'log') {
1498
- this.router.navigate([...routePrefix, ...rightSidenav], navigationExtras);
1502
+ this.router.navigate([baseHref, ...routePrefix, ...rightSidenav], navigationExtras);
1499
1503
  return;
1500
1504
  }
1501
1505
  // In all other cases, open the side menu
@@ -1514,10 +1518,13 @@ class NettyAgGridBase {
1514
1518
  });
1515
1519
  }
1516
1520
  popupGotoURL(urlSegments) {
1521
+ const baseHref = this.environment.getBaseHref().endsWith('/')
1522
+ ? this.environment.getBaseHref().slice(0, -1) // Sondaki / işaretini kaldır
1523
+ : this.environment.getBaseHref();
1517
1524
  this.router.navigate([
1518
1525
  {
1519
1526
  outlets: {
1520
- primary: urlSegments,
1527
+ primary: [baseHref, ...urlSegments],
1521
1528
  rightSidenav: null,
1522
1529
  },
1523
1530
  },