tnx-shared 5.3.57 → 5.3.58

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,12 @@
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
+ if (item.url.startsWith('http')) {
58073
+ top.location.href = item.url;
58078
58074
  }
58079
- var link = item.url + "/" + item.defaultRedirect;
58080
- if (!link.startsWith('/') && !link.startsWith('http')) {
58081
- link = '/' + link;
58075
+ else {
58076
+ top.location.href = item.url + "/" + (item.defaultRedirect || '');
58082
58077
  }
58083
- top.location.href = link;
58084
58078
  }
58085
58079
  else {
58086
58080
  if (item.defaultRedirect != '' && !this.rootContext.data.flags.menuTopOpenning) {
@@ -58279,18 +58273,12 @@
58279
58273
  SplashComponentV2Component.prototype.switchApp = function (item) {
58280
58274
  this.loaded = false;
58281
58275
  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();
58276
+ if (item.url.startsWith('http')) {
58277
+ top.location.href = item.url;
58288
58278
  }
58289
- var link = item.url + "/" + item.defaultRedirect;
58290
- if (!link.startsWith('/') && !link.startsWith('http')) {
58291
- link = '/' + link;
58279
+ else {
58280
+ top.location.href = item.url + "/" + (item.defaultRedirect || '');
58292
58281
  }
58293
- top.location.href = link;
58294
58282
  }
58295
58283
  else {
58296
58284
  if (item.defaultRedirect != '' && !this.rootContext.data.flags.menuTopOpenning) {
@@ -58488,18 +58476,12 @@
58488
58476
  SplashComponentV3Component.prototype.switchApp = function (item) {
58489
58477
  this.loaded = false;
58490
58478
  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();
58479
+ if (item.url.startsWith('http')) {
58480
+ top.location.href = item.url;
58497
58481
  }
58498
- var link = item.url + "/" + item.defaultRedirect;
58499
- if (!link.startsWith('/') && !link.startsWith('http')) {
58500
- link = '/' + link;
58482
+ else {
58483
+ top.location.href = item.url + "/" + (item.defaultRedirect || '');
58501
58484
  }
58502
- top.location.href = link;
58503
58485
  }
58504
58486
  else {
58505
58487
  if (item.defaultRedirect != '' && !this.rootContext.data.flags.menuTopOpenning) {
@@ -58697,18 +58679,12 @@
58697
58679
  SplashComponentV4Component.prototype.switchApp = function (item) {
58698
58680
  this.loaded = false;
58699
58681
  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();
58682
+ if (item.url.startsWith('http')) {
58683
+ top.location.href = item.url;
58706
58684
  }
58707
- var link = item.url + "/" + item.defaultRedirect;
58708
- if (!link.startsWith('/') && !link.startsWith('http')) {
58709
- link = '/' + link;
58685
+ else {
58686
+ top.location.href = item.url + "/" + (item.defaultRedirect || '');
58710
58687
  }
58711
- top.location.href = link;
58712
58688
  }
58713
58689
  else {
58714
58690
  if (item.defaultRedirect != '' && !this.rootContext.data.flags.menuTopOpenning) {