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.
This commit is contained in:
Aaron Carlisle 2022-02-03 15:21:44 -05:00
parent bda210d74a
commit a0c1306e8c
1 changed files with 1 additions and 1 deletions

View File

@ -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));