@redneckz/wildless-cms-uni-blocks 0.6.38 → 0.6.39

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.
@@ -7,7 +7,6 @@ export interface ProjectSettings {
7
7
  SITEMAP?: string;
8
8
  FOOTER?: string;
9
9
  CDN?: string; // Should ends with "/"
10
- BASE_PATH?: string; // Should ends with "/"
11
10
  YANDEX_MAP_API_KEY?: string;
12
11
  YANDEX_METRIKA_ID?: string;
13
12
  }
@@ -46,9 +45,6 @@ export const projectSettings = new (class implements ProjectSettings {
46
45
  get CDN() {
47
46
  return this._.CDN;
48
47
  }
49
- get BASE_PATH() {
50
- return this._.BASE_PATH;
51
- }
52
48
  get YANDEX_MAP_API_KEY() {
53
49
  return this._.YANDEX_MAP_API_KEY;
54
50
  }
@@ -1,4 +1,3 @@
1
- import { projectSettings } from '../ProjectSettings';
2
1
  import { getOrigin } from './url';
3
2
 
4
3
  export const adjustHref = (
@@ -9,9 +8,8 @@ export const adjustHref = (
9
8
  return href;
10
9
  }
11
10
 
12
- const hrefWithBasePath = `${projectSettings.BASE_PATH || ''}${href}`;
13
11
  const origin = getOrigin(router?.href);
14
12
 
15
13
  // Relative URL
16
- return origin ? hrefWithBasePath.replace(origin, '') || '/' : hrefWithBasePath;
14
+ return origin ? href.replace(origin, '') || '/' : href;
17
15
  };