From f2b3716fa7cd210331336d91e312f4bc9399e217 Mon Sep 17 00:00:00 2001 From: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Date: Tue, 16 Dec 2025 13:49:52 -0500 Subject: [PATCH 1/3] =?UTF-8?q?Point=20the=20link=20in=20the=20supported/u?= =?UTF-8?q?nsupported=20version=20header=20to=20home=20pa=E2=80=A6=20(#116?= =?UTF-8?q?52)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Point the link in the supported/unsupported version header to home page for 404s Signed-off-by: Fanit Kolchina * Point to the about page Signed-off-by: Fanit Kolchina --------- Signed-off-by: Fanit Kolchina (cherry picked from commit c5d8bca431732bc776b4afb79c7674a9e63c88a4) --- _layouts/default.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/_layouts/default.html b/_layouts/default.html index e533cf8877c..1f81f7c6530 100755 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -142,7 +142,10 @@

Documentation

{% endif %} {% endunless %}
- {% include warning.html %} + {% if site.doc_version == "supported" %} +

You're viewing version {{site.opensearch_major_minor_version}} of the OpenSearch documentation. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.

+ {% elsif site.doc_version == "unsupported" %} +

You're viewing version {{site.opensearch_major_minor_version}} of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.

{% if site.heading_anchors != false %} {% include vendor/anchor_headings.html html=content beforeHeading="true" anchorBody="" anchorClass="anchor-heading" anchorAttrs="aria-labelledby=\"%html_id%\"" %} {% else %} From e4b27eb6959d81d99c5b2f0007f68d3114befd42 Mon Sep 17 00:00:00 2001 From: Fanit Kolchina Date: Tue, 16 Dec 2025 14:20:38 -0500 Subject: [PATCH 2/3] Fix version warning link in _includes/warning.html for 404 handling The version warning in 1.1 is in _includes/warning.html, not _layouts/default.html. This commit adds the proper 404 handling logic to the correct file. Signed-off-by: Claude Signed-off-by: Fanit Kolchina --- _includes/warning.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/warning.html b/_includes/warning.html index a95cf140bba..37bd3ea3a00 100644 --- a/_includes/warning.html +++ b/_includes/warning.html @@ -1 +1 @@ -

You're viewing version {{site.opensearch_major_minor_version}} of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.

+

You're viewing version {{site.opensearch_major_minor_version}} of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.

From eda89fb4531ef993046181821be08419e01dbd10 Mon Sep 17 00:00:00 2001 From: Fanit Kolchina Date: Tue, 16 Dec 2025 14:22:45 -0500 Subject: [PATCH 3/3] Restore _layouts/default.html to original state The version warning in 1.1 is in _includes/warning.html, not _layouts/default.html. Reverting the incorrect changes to default.html while keeping the correct fix in warning.html. Signed-off-by: Claude Signed-off-by: Fanit Kolchina --- _layouts/default.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index 1f81f7c6530..e533cf8877c 100755 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -142,10 +142,7 @@

Documentation

{% endif %} {% endunless %}
- {% if site.doc_version == "supported" %} -

You're viewing version {{site.opensearch_major_minor_version}} of the OpenSearch documentation. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.

- {% elsif site.doc_version == "unsupported" %} -

You're viewing version {{site.opensearch_major_minor_version}} of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.

+ {% include warning.html %} {% if site.heading_anchors != false %} {% include vendor/anchor_headings.html html=content beforeHeading="true" anchorBody="" anchorClass="anchor-heading" anchorAttrs="aria-labelledby=\"%html_id%\"" %} {% else %}