Skip to content

Commit 1654788

Browse files
authored
Ending version links with "/"
1 parent 3121199 commit 1654788

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/release-docs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const moveToBucket = (version) => {
7373
};
7474

7575
const updateRedirectionToLatest = (version) => {
76-
const redirection = `window.location.replace("https://developer.dxc.com/tools/angular/${version}");`;
76+
const redirection = `window.location.replace("https://developer.dxc.com/tools/angular/${version}/");`;
7777
return new Promise((resolve, reject) => {
7878
exec(
7979
`echo '${redirection}' | aws s3 cp - s3://${BUCKET_NAME}/${DIRECTORY}redirect.js`,
@@ -111,7 +111,7 @@ const updateAvailableVersions = async (versions, currentVersion) => {
111111
const currentItem = isNaN(version) ? "next" : version;
112112
return {
113113
versionNumber: currentItem,
114-
versionURL: `https://developer.dxc.com/tools/angular/${currentItem}`,
114+
versionURL: `https://developer.dxc.com/tools/angular/${currentItem}/`,
115115
current: currentItem === currentVersion
116116
}
117117
})

0 commit comments

Comments
 (0)