From a0c1306e8c7673f365e1907cacff86f788e08cef Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Thu, 3 Feb 2022 15:21:44 -0500 Subject: 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. --- doc/python_api/static/js/version_switch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') 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)); -- cgit v1.2.3