Skip to content

Commit 56d25b8

Browse files
EW-1383: Also read href on resource. (#6060)
1 parent eedde32 commit 56d25b8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

apps/server/src/modules/common-cartridge/import/utils/common-cartridge-organization-visitor.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ export class CommonCartridgeOrganizationVisitorNode {
144144
.toArray()
145145
.map((fileElement) => fileElement.attribs['href'] || null)
146146
.filter((href) => href !== null);
147+
const resourceHref = this.document(`manifest > resources > resource[identifier="${identifierRef}"]`).attr('href');
148+
149+
if (resourceHref && paths.indexOf(resourceHref) === -1) {
150+
paths.unshift(resourceHref);
151+
}
147152

148153
return paths;
149154
}
Binary file not shown.

0 commit comments

Comments
 (0)