ochre-sdk 1.0.32 → 1.0.33
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.
|
@@ -337,7 +337,7 @@ function parseWebElementProperties(componentProperty, elementResource, options,
|
|
|
337
337
|
href = parseWebsiteLinkTarget(componentReader.valueNode("link-to"), context);
|
|
338
338
|
if (href === null) throw new Error(formatComponentError("Properties “navigate-to” or “link-to” not found", componentName, elementResource), { cause: componentProperty });
|
|
339
339
|
else {
|
|
340
|
-
isExternal =
|
|
340
|
+
isExternal = href.startsWith("http");
|
|
341
341
|
isRelative = !href.startsWith("/");
|
|
342
342
|
}
|
|
343
343
|
}
|