@bright.global/arboretum-sdk 0.1.0-rc.6 → 0.1.0-rc.7

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.
@@ -12,7 +12,7 @@ export var redirectEntryAdapter = function (data, pageField, pathField, typeFiel
12
12
  return pageSysId && path && (type === "redirect" || type === "alias")
13
13
  ? {
14
14
  page: { sys: { id: pageSysId } },
15
- path: parent.path + path,
15
+ path: parent.path + (path.startsWith("/") ? path : "/".concat(path)),
16
16
  title: title || undefined,
17
17
  metadata: entry.metadata,
18
18
  type: type,
@@ -15,7 +15,7 @@ var redirectEntryAdapter = function (data, pageField, pathField, typeField, titl
15
15
  return pageSysId && path && (type === "redirect" || type === "alias")
16
16
  ? {
17
17
  page: { sys: { id: pageSysId } },
18
- path: parent.path + path,
18
+ path: parent.path + (path.startsWith("/") ? path : "/".concat(path)),
19
19
  title: title || undefined,
20
20
  metadata: entry.metadata,
21
21
  type: type,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bright.global/arboretum-sdk",
3
- "version": "0.1.0-rc.6",
3
+ "version": "0.1.0-rc.7",
4
4
  "license": "MIT",
5
5
  "description": "The sitemap for contentful",
6
6
  "dependencies": {},