Skip to content

Commit

Permalink
Ending version links with "/"
Browse files Browse the repository at this point in the history
  • Loading branch information
kukoc authored Aug 3, 2022
1 parent 3121199 commit 1654788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/release-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down Expand Up @@ -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
}
})
Expand Down

0 comments on commit 1654788

Please sign in to comment.