We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34fac8c commit cd2249fCopy full SHA for cd2249f
1 file changed
blocks/edit/da-library/da-library.js
@@ -544,6 +544,13 @@ class DaLibrary extends LitElement {
544
try {
545
const itemUrl = new URL(getUrl(item));
546
path = itemUrl.pathname;
547
+
548
+ // DA Admin Flavored URLs
549
+ if (itemUrl.origin.endsWith('admin.da.live') && path.startsWith('/source')) {
550
+ path = path.replace('/source', '');
551
+ }
552
553
+ // AEM Flavored URLs
554
if (itemUrl.origin.includes('--')) {
555
const [org, site] = getEdsUrlVars(getUrl(item));
556
path = `/${org}/${site}${itemUrl.pathname}`;
0 commit comments