From d2a871543a12143fa0ecea13d7508021fd019031 Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Mon, 13 Jun 2022 16:04:08 +0200 Subject: [PATCH] chore: add trailing slash to `pathPrefix` (#15993) --- docs/.eleventy.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/.eleventy.js b/docs/.eleventy.js index f8691ec28e4..9652d84ebcc 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 = `