Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAaron Carlisle <carlisle.b3d@gmail.com>2022-02-03 23:21:44 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2022-02-03 23:21:44 +0300
commita0c1306e8c7673f365e1907cacff86f788e08cef (patch)
treeb0497d5d2dfcb9b4b40263014568ee6b34070513 /doc
parentbda210d74ae800e38b3d4bb99889a3a528da1a12 (diff)
Py Docs: Fix error is version switch
Slile parameter of 4 was looking for the language in the URL but the API docs do not have a language in the URL.
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/static/js/version_switch.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/python_api/static/js/version_switch.js b/doc/python_api/static/js/version_switch.js
index 7d9c449d2e3..d69b17c31bb 100644
--- a/doc/python_api/static/js/version_switch.js
+++ b/doc/python_api/static/js/version_switch.js
@@ -126,7 +126,7 @@ var Popover = function() {
var url = new URL(window.location.href);
let pathSplit = [ "", "api", v ];
if (url.pathname.startsWith("/api/")) {
- pathSplit.push(url.pathname.split('/').slice(4).join('/'));
+ pathSplit.push(url.pathname.split('/').slice(3).join('/'));
}
else {
pathSplit.push(url.pathname.substring(1));