From 1708d7482c0dcb443e2835d94819592d147540fe Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Mon, 13 Jun 2022 15:32:04 +0200 Subject: [PATCH] chore: add trailing slash to `pathPrefix` --- docs/.eleventy.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/.eleventy.js b/docs/.eleventy.js index 4aa1c25f501..75238791044 100644 --- a/docs/.eleventy.js +++ b/docs/.eleventy.js @@ -30,12 +30,12 @@ module.exports = function(eleventyConfig) { * see changes before deployed. */ - let pathPrefix = "/docs/head"; + let pathPrefix = "/docs/head/"; if (process.env.CONTEXT === "deploy-preview") { - pathPrefix = ""; + pathPrefix = "/"; } else if (process.env.BRANCH === "latest") { - pathPrefix = "/docs/latest"; + pathPrefix = "/docs/latest/"; } eleventyConfig.addGlobalData("GIT_BRANCH", process.env.BRANCH); @@ -212,7 +212,7 @@ module.exports = function(eleventyConfig) { rules.forEach(rule => { const listItem = `