@mediusinc/mng-commons 0.21.0 → 0.21.1

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.
@@ -6823,11 +6823,11 @@ class MngParametrizePipe {
6823
6823
  }
6824
6824
  }
6825
6825
  transformString(s, params) {
6826
- if ((s.indexOf('/') >= 0 && s.indexOf(':') >= 0) || s.startsWith(':')) {
6827
- // this is url
6826
+ if ((s.indexOf('/') >= 0 && s.indexOf(':') >= 0 && !s.startsWith('http://') && !s.startsWith('https://')) || s.startsWith(':')) {
6827
+ // this is router link
6828
6828
  return s
6829
6829
  .split('/')
6830
- .map(s => this.parametrizeStringAsUrl(s, params))
6830
+ .map(s => this.parametrizeStringAsRouterLink(s, params))
6831
6831
  .join('/');
6832
6832
  }
6833
6833
  else {
@@ -6835,7 +6835,7 @@ class MngParametrizePipe {
6835
6835
  return this.parametrizeString(s, params);
6836
6836
  }
6837
6837
  }
6838
- parametrizeStringAsUrl(s, params) {
6838
+ parametrizeStringAsRouterLink(s, params) {
6839
6839
  if (s.startsWith(':')) {
6840
6840
  const itemProperty = s.substring(1);
6841
6841
  return this.jsonPath.transform(params, itemProperty) ?? '';