Skip to content

Commit

Permalink
chore: add trailing slash to pathPrefix (#15993)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Jun 13, 2022
1 parent 58a1bf0 commit d2a8715
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/.eleventy.js
Expand Up @@ -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);
Expand Down Expand Up @@ -212,7 +212,7 @@ module.exports = function(eleventyConfig) {

rules.forEach(rule => {
const listItem = `<li class="related-rules__list__item">
<a href="${pathPrefix}/rules/${rule}">
<a href="${pathPrefix}rules/${rule}">
<span>${rule}</span>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true" focusable="false">
<path d="M5 12H19M19 12L12 5M19 12L12 19" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
Expand Down

0 comments on commit d2a8715

Please sign in to comment.