diff --git a/website/script/fix-path.js b/website/script/fix-path.js index f6b8c262223..b2d43c35c79 100644 --- a/website/script/fix-path.js +++ b/website/script/fix-path.js @@ -27,6 +27,13 @@ var urlVersion = process.argv[2]; var druidVersion = process.argv[3]; try { + // Change any explict "/docs/latest" links to "/docs/" to be picked up by the next replace + replace.sync({ + files: './build/ApacheDruid/docs/**/*.html', + from: /"\/docs\/latest"/g, + to: `"/docs/"`, + }); + // Fix doc paths replace.sync({ files: './build/ApacheDruid/docs/**/*.html',