diff --git a/scripts/docs/processors/jekyll.js b/scripts/docs/processors/jekyll.js index 12bf88df4..aea994359 100644 --- a/scripts/docs/processors/jekyll.js +++ b/scripts/docs/processors/jekyll.js @@ -22,7 +22,10 @@ module.exports = function jekyll(renderDocsProcessor) { doc.URL = doc.outputPath.replace('docs//', 'docs/') .replace('/index.md', '') .replace('content/', ''); - doc.URL = doc.URL+'/'; // add trailing slash + // add trailing slash to plugin pages + if(!doc.URL.endsWith("/") && !doc.URL.endsWith(".html")) { + doc.URL = doc.URL+'/'; + } }); const betaDocs = [];