From 67976b00d42168027c45ea3901a5888160fe54e6 Mon Sep 17 00:00:00 2001 From: Viorel-Cosmin Miron Date: Fri, 25 Sep 2026 23:30:05 +0200 Subject: [PATCH] fix: point documentation help links at docs.openedx.org "latest" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit doc_version() returned "open-release-.master" on named release branches, but docs.openedx.org does not publish versions under that slug (RTD serves "latest" and bare release names like "ulmo"). Every generated help link — including the "documentation" link in the Studio course-outline Section Highlights dialog — therefore 404s on release lines. Always return "latest" so the links resolve. --- openedx/core/release.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/openedx/core/release.py b/openedx/core/release.py index ce30df8cc543..97cc5b0d5127 100644 --- a/openedx/core/release.py +++ b/openedx/core/release.py @@ -12,14 +12,17 @@ def doc_version(): - """The readthedocs.org version name used in documentation references. + """The docs.openedx.org version name used in documentation references. - Returns a short string like "latest" or "open-release-ficus.master". + docs.openedx.org only publishes a "latest" version (and, at most, the + current named release under a bare slug like "ulmo"). The legacy + "open-release-.master" slugs do not exist there, so help links + generated on named release lines 404 for operators and course authors. + Always point at "latest". + + Returns a short string like "latest". """ - if RELEASE_LINE == "master": - return "latest" - else: - return f"open-release-{RELEASE_LINE}.master" + return "latest" def skip_unless_master(func_or_class):