From 1654788c94c9ed39c640894e30880c51e7fc944d Mon Sep 17 00:00:00 2001 From: kukoc Date: Wed, 3 Aug 2022 11:44:49 +0200 Subject: [PATCH] Ending version links with "/" --- scripts/release-docs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/release-docs.js b/scripts/release-docs.js index 1919ce3fa..c2b0face7 100644 --- a/scripts/release-docs.js +++ b/scripts/release-docs.js @@ -73,7 +73,7 @@ const moveToBucket = (version) => { }; const updateRedirectionToLatest = (version) => { - const redirection = `window.location.replace("https://developer.dxc.com/tools/angular/${version}");`; + const redirection = `window.location.replace("https://developer.dxc.com/tools/angular/${version}/");`; return new Promise((resolve, reject) => { exec( `echo '${redirection}' | aws s3 cp - s3://${BUCKET_NAME}/${DIRECTORY}redirect.js`, @@ -111,7 +111,7 @@ const updateAvailableVersions = async (versions, currentVersion) => { const currentItem = isNaN(version) ? "next" : version; return { versionNumber: currentItem, - versionURL: `https://developer.dxc.com/tools/angular/${currentItem}`, + versionURL: `https://developer.dxc.com/tools/angular/${currentItem}/`, current: currentItem === currentVersion } })