summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
Diffstat (limited to 'documentation')
-rwxr-xr-xdocumentation/set_versions.py2
-rw-r--r--documentation/sphinx-static/switchers.js.in6
2 files changed, 3 insertions, 5 deletions
diff --git a/documentation/set_versions.py b/documentation/set_versions.py
index 8ae02b11f9..0086e9bea3 100755
--- a/documentation/set_versions.py
+++ b/documentation/set_versions.py
@@ -128,7 +128,7 @@ else:
128 if branch == "master": 128 if branch == "master":
129 ourseries = devbranch 129 ourseries = devbranch
130 docconfver = "dev" 130 docconfver = "dev"
131 bitbakeversion = "" 131 bitbakeversion = "dev"
132 elif branch in release_series: 132 elif branch in release_series:
133 ourseries = branch 133 ourseries = branch
134 if branch in bitbake_mapping: 134 if branch in bitbake_mapping:
diff --git a/documentation/sphinx-static/switchers.js.in b/documentation/sphinx-static/switchers.js.in
index 408e23a71c..4966b3033d 100644
--- a/documentation/sphinx-static/switchers.js.in
+++ b/documentation/sphinx-static/switchers.js.in
@@ -149,11 +149,9 @@ by https://git.yoctoproject.org/yocto-autobuilder-helper/tree/scripts/run-docs-b
149 var docroot = get_docroot_url() 149 var docroot = get_docroot_url()
150 150
151 var new_versionpath = selected_version + '/'; 151 var new_versionpath = selected_version + '/';
152 if (selected_version == "dev")
153 new_versionpath = '';
154 152
155 // dev versions have no version prefix 153 // latest tag is also the default page (without version information)
156 if (current_version == "dev") { 154 if (docroot.endsWith(current_version + '/') == false) {
157 var new_url = docroot + new_versionpath + url.replace(docroot, ""); 155 var new_url = docroot + new_versionpath + url.replace(docroot, "");
158 var fallback_url = docroot + new_versionpath; 156 var fallback_url = docroot + new_versionpath;
159 } else { 157 } else {