tnx-shared 5.3.57 → 5.3.59

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.
@@ -58069,18 +58069,11 @@
58069
58069
  SplashComponentV1Component.prototype.switchApp = function (item) {
58070
58070
  this.loaded = false;
58071
58071
  if (item.target == '_blank') {
58072
- if (!item.defaultRedirect) {
58073
- item.defaultRedirect = '';
58074
- }
58075
- // NamNH tip trick cho mot so may bi loi item.url = 'main' -> redirect sai khi click vao cac phan he
58076
- if (item.url == item.defaultRedirect) {
58077
- item.url = '/' + item.code.toLowerCase();
58072
+ var url = item.url;
58073
+ if (item.defaultRedirect) {
58074
+ url += "/" + item.defaultRedirect;
58078
58075
  }
58079
- var link = item.url + "/" + item.defaultRedirect;
58080
- if (!link.startsWith('/') && !link.startsWith('http')) {
58081
- link = '/' + link;
58082
- }
58083
- top.location.href = link;
58076
+ top.location.href = url;
58084
58077
  }
58085
58078
  else {
58086
58079
  if (item.defaultRedirect != '' && !this.rootContext.data.flags.menuTopOpenning) {
@@ -58279,18 +58272,11 @@
58279
58272
  SplashComponentV2Component.prototype.switchApp = function (item) {
58280
58273
  this.loaded = false;
58281
58274
  if (item.target == '_blank') {
58282
- if (!item.defaultRedirect) {
58283
- item.defaultRedirect = '';
58284
- }
58285
- // NamNH tip trick cho mot so may bi loi item.url = 'main' -> redirect sai khi click vao cac phan he
58286
- if (item.url == item.defaultRedirect) {
58287
- item.url = '/' + item.code.toLowerCase();
58275
+ var url = item.url;
58276
+ if (item.defaultRedirect) {
58277
+ url += "/" + item.defaultRedirect;
58288
58278
  }
58289
- var link = item.url + "/" + item.defaultRedirect;
58290
- if (!link.startsWith('/') && !link.startsWith('http')) {
58291
- link = '/' + link;
58292
- }
58293
- top.location.href = link;
58279
+ top.location.href = url;
58294
58280
  }
58295
58281
  else {
58296
58282
  if (item.defaultRedirect != '' && !this.rootContext.data.flags.menuTopOpenning) {
@@ -58488,18 +58474,11 @@
58488
58474
  SplashComponentV3Component.prototype.switchApp = function (item) {
58489
58475
  this.loaded = false;
58490
58476
  if (item.target == '_blank') {
58491
- if (!item.defaultRedirect) {
58492
- item.defaultRedirect = '';
58493
- }
58494
- // NamNH tip trick cho mot so may bi loi item.url = 'main' -> redirect sai khi click vao cac phan he
58495
- if (item.url == item.defaultRedirect) {
58496
- item.url = '/' + item.code.toLowerCase();
58477
+ var url = item.url;
58478
+ if (item.defaultRedirect) {
58479
+ url += "/" + item.defaultRedirect;
58497
58480
  }
58498
- var link = item.url + "/" + item.defaultRedirect;
58499
- if (!link.startsWith('/') && !link.startsWith('http')) {
58500
- link = '/' + link;
58501
- }
58502
- top.location.href = link;
58481
+ top.location.href = url;
58503
58482
  }
58504
58483
  else {
58505
58484
  if (item.defaultRedirect != '' && !this.rootContext.data.flags.menuTopOpenning) {
@@ -58697,18 +58676,11 @@
58697
58676
  SplashComponentV4Component.prototype.switchApp = function (item) {
58698
58677
  this.loaded = false;
58699
58678
  if (item.target == '_blank') {
58700
- if (!item.defaultRedirect) {
58701
- item.defaultRedirect = '';
58702
- }
58703
- // NamNH tip trick cho mot so may bi loi item.url = 'main' -> redirect sai khi click vao cac phan he
58704
- if (item.url == item.defaultRedirect) {
58705
- item.url = '/' + item.code.toLowerCase();
58679
+ var url = item.url;
58680
+ if (item.defaultRedirect) {
58681
+ url += "/" + item.defaultRedirect;
58706
58682
  }
58707
- var link = item.url + "/" + item.defaultRedirect;
58708
- if (!link.startsWith('/') && !link.startsWith('http')) {
58709
- link = '/' + link;
58710
- }
58711
- top.location.href = link;
58683
+ top.location.href = url;
58712
58684
  }
58713
58685
  else {
58714
58686
  if (item.defaultRedirect != '' && !this.rootContext.data.flags.menuTopOpenning) {