Skip to content

Commit 13b3377

Browse files
authored
Merge pull request #8875 from dragonstyle/bugfix/listing-reading
Website Listing - file paths
2 parents 43ad0da + fc74c74 commit 13b3377

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/project/types/website/listing/website-listing-read.ts

+7
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,13 @@ async function listItemFromMeta(
10031003
...(fileListing.item || {}),
10041004
...listingItem,
10051005
};
1006+
// If the file itself provides a path (e.g. it is an input with an
1007+
// output path), that should be used rather than the path in the metadata
1008+
// which was literally just used to get the path to the file that
1009+
// we're now reading.
1010+
if (fileListing.item.path) {
1011+
listingItem.path = fileListing.item.path;
1012+
}
10061013
source = ListingItemSource.metadataDocument;
10071014
}
10081015
}

0 commit comments

Comments
 (0)