Skip to content

Commit e3786d5

Browse files
authored
fix: other downloads incorrect for 'current' (#5274)
1 parent b40c70c commit e3786d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

components/Home/HomeDownloadButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const HomeDownloadButton = (props: HomeDownloadButtonProps) => {
1616

1717
const nodeDownloadLink = `https://nodejs.org/dist/${props.node}/`;
1818
const nodeApiLink = `https://nodejs.org/dist/latest-${props.nodeMajor}/docs/api/`;
19-
19+
const nodeAllDownloadsLink = `/download${props.isLts ? '/' : '/current'}`;
2020
const nodeDownloadTitle =
2121
`${labels.download} ${props.nodeNumeric}` +
2222
` ${labels[props.isLts ? 'lts' : 'current']}`;
@@ -35,7 +35,7 @@ const HomeDownloadButton = (props: HomeDownloadButtonProps) => {
3535

3636
<ul className="list-divider-pipe home-secondary-links">
3737
<li>
38-
<LocalizedLink href="/download/">
38+
<LocalizedLink href={nodeAllDownloadsLink}>
3939
{labels['other-downloads']}
4040
</LocalizedLink>
4141
</li>

0 commit comments

Comments
 (0)