diff options
author | Aaron Carlisle <carlisle.b3d@gmail.com> | 2022-02-03 23:21:44 +0300 |
---|---|---|
committer | Aaron Carlisle <carlisle.b3d@gmail.com> | 2022-02-03 23:21:44 +0300 |
commit | a0c1306e8c7673f365e1907cacff86f788e08cef (patch) | |
tree | b0497d5d2dfcb9b4b40263014568ee6b34070513 | |
parent | bda210d74ae800e38b3d4bb99889a3a528da1a12 (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.
-rw-r--r-- | doc/python_api/static/js/version_switch.js | 2 |
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)); |