From 82cc778a0f3faa7183b047a910b58a19c2bf7fd7 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 7 Jun 2023 14:03:04 -0400 Subject: [PATCH] fix urls when build on win --- docs/eleventy.config.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/eleventy.config.cjs b/docs/eleventy.config.cjs index a6eb32661..c82b3e24d 100644 --- a/docs/eleventy.config.cjs +++ b/docs/eleventy.config.cjs @@ -161,7 +161,7 @@ module.exports = function (eleventyConfig) { this.field('c'); // content results.forEach((result, index) => { - const url = path.join('/', path.relative(eleventyConfig.dir.output, result.outputPath)); + const url = path.join('/', path.relative(eleventyConfig.dir.output, result.outputPath)).replace(/\\/g, '/'); const doc = new JSDOM(result.content, { // We must set a default URL so links are parsed with a hostname. Let's use a bogus TLD so we can easily // identify which ones are internal and which ones are external.