Skip to content

Commit 34fac8c

Browse files
Revert "fix: wrong status call (#743)" (#744)
This reverts commit d905c3f.
1 parent d905c3f commit 34fac8c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

blocks/edit/da-library/da-library.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,10 @@ class DaLibrary extends LitElement {
544544
try {
545545
const itemUrl = new URL(getUrl(item));
546546
path = itemUrl.pathname;
547-
const [org, site] = getEdsUrlVars(getUrl(item));
548-
path = `/${org}/${site}${itemUrl.pathname}`;
547+
if (itemUrl.origin.includes('--')) {
548+
const [org, site] = getEdsUrlVars(getUrl(item));
549+
path = `/${org}/${site}${itemUrl.pathname}`;
550+
}
549551
} catch {
550552
item.error = 'Please use a fully qualified url for your library';
551553
}

0 commit comments

Comments
 (0)