From 78c4bc12284c31432919a5a870f7028daf04a404 Mon Sep 17 00:00:00 2001
From: Mohit5Upadhyay <129863157+Mohit5Upadhyay@users.noreply.github.com>
Date: Fri, 26 Sep 2025 22:03:19 +0530
Subject: [PATCH] feat: add End-of-life (EOL) link under About menu (#8156)
* feat: add End-of-life (EOL) link under About menu
* fix(eol): change layout from article to about to restore sidebar for End-Of-Life page
* refactor(eol): update all internal links to /about/eol for consistency
---
apps/site/components/EOL/EOLAlert.tsx | 2 +-
apps/site/components/withReleaseAlertBox.tsx | 2 +-
apps/site/navigation.json | 4 ++++
apps/site/pages/en/{ => about}/eol.mdx | 2 +-
apps/site/pages/en/index.mdx | 2 +-
apps/site/pages/fr/index.mdx | 2 +-
apps/site/pages/ja/index.mdx | 5 +++--
apps/site/pages/ro/index.mdx | 2 +-
apps/site/pages/uk/index.mdx | 2 +-
apps/site/redirects.json | 4 ++++
packages/i18n/src/locales/en.json | 3 ++-
11 files changed, 20 insertions(+), 10 deletions(-)
rename apps/site/pages/en/{ => about}/eol.mdx (99%)
diff --git a/apps/site/components/EOL/EOLAlert.tsx b/apps/site/components/EOL/EOLAlert.tsx
index 446949b5c3c6a..f6718e3884bf4 100644
--- a/apps/site/components/EOL/EOLAlert.tsx
+++ b/apps/site/components/EOL/EOLAlert.tsx
@@ -8,7 +8,7 @@ const EOLAlert = () => {
return (
{t.rich('components.eolAlert.message', {
- link: text => {text},
+ link: text => {text},
})}
);
diff --git a/apps/site/components/withReleaseAlertBox.tsx b/apps/site/components/withReleaseAlertBox.tsx
index ccab6943e76dd..840f8bb3dd5d4 100644
--- a/apps/site/components/withReleaseAlertBox.tsx
+++ b/apps/site/components/withReleaseAlertBox.tsx
@@ -21,7 +21,7 @@ const WithReleaseAlertBox: FC = ({ status }) => {
size="small"
>
{t.rich('layouts.download.codeBox.unsupportedVersionWarning', {
- link: text => {text},
+ link: text => {text},
})}
);
diff --git a/apps/site/navigation.json b/apps/site/navigation.json
index 025763c89aa89..3b2ae36115e2a 100644
--- a/apps/site/navigation.json
+++ b/apps/site/navigation.json
@@ -113,6 +113,10 @@
"branding": {
"link": "/about/branding",
"label": "components.navigation.about.links.branding"
+ },
+ "eol": {
+ "link": "/about/eol",
+ "label": "components.navigation.about.links.eol"
}
}
},
diff --git a/apps/site/pages/en/eol.mdx b/apps/site/pages/en/about/eol.mdx
similarity index 99%
rename from apps/site/pages/en/eol.mdx
rename to apps/site/pages/en/about/eol.mdx
index 7d45b0eecd42f..1df997c3c72e8 100644
--- a/apps/site/pages/en/eol.mdx
+++ b/apps/site/pages/en/about/eol.mdx
@@ -1,6 +1,6 @@
---
title: End-Of-Life
-layout: article
+layout: about
description: Understand Node.js End-of-Life, what it means for security, tooling, and compliance, plus EOL version details and commercial support options.
---
diff --git a/apps/site/pages/en/index.mdx b/apps/site/pages/en/index.mdx
index 0721fafa8b692..6d8aa5ca2efb4 100644
--- a/apps/site/pages/en/index.mdx
+++ b/apps/site/pages/en/index.mdx
@@ -21,7 +21,7 @@ layout: home
-