We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc17f6e commit 5d8246aCopy full SHA for 5d8246a
src/project/types/website/listing/website-listing-read.ts
@@ -358,12 +358,10 @@ export function completeListingItems(
358
});
359
360
if (contents.previewImage) {
361
- const imagePath = pathWithForwardSlashes(
362
- listingItemHref(
363
- contents.previewImage.src,
364
- dirname(docRelativePath),
365
- ),
366
- );
+ const imagePath = isAbsolute(contents.previewImage.src)
+ ? contents.previewImage.src
+ : join(dirname(docRelativePath), contents.previewImage.src);
+
367
const imgHtml = imageSrc(
368
{ ...contents.previewImage, src: imagePath },
369
progressive,
0 commit comments