diff options
Diffstat (limited to 'documentation/sphinx-static/switchers.js.in')
-rw-r--r-- | documentation/sphinx-static/switchers.js.in | 6 |
1 files changed, 2 insertions, 4 deletions
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 { |