Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions generator/_scripts/cfdoc_patch_header_nav.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading