From 685c1330d700f61bbae4135e8d1dd748c5ded8df Mon Sep 17 00:00:00 2001 From: Ihor Aleksandrychiev Date: Thu, 23 Apr 2026 10:55:23 +0300 Subject: [PATCH] Lowered version threshold for URL rewriting to 3.24 Signed-off-by: Ihor Aleksandrychiev --- generator/_scripts/cfdoc_patch_header_nav.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generator/_scripts/cfdoc_patch_header_nav.py b/generator/_scripts/cfdoc_patch_header_nav.py index 9f616a823..697225e46 100644 --- a/generator/_scripts/cfdoc_patch_header_nav.py +++ b/generator/_scripts/cfdoc_patch_header_nav.py @@ -32,11 +32,11 @@ def should_replace_version(version): if version in special_versions: return True - # handle numeric versions: if the version is 3.27 or higher, replace the version in the URL - # starting with 3.27 we changed the URL structure, so for older versions like 3.24 + # handle numeric versions: if the version is 3.24 or higher, replace the version in the URL + # starting with 3.24 we changed the URL structure, so for older versions like 3.21 # replacing the version would lead to the 404 page. In that case, redirect to the main page. try: - if float(version) >= 3.27: + if float(version) >= 3.24: return True except ValueError: return False