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:
@@ -126,7 +126,7 @@ var Popover = function() {
|
|||||||
var url = new URL(window.location.href);
|
var url = new URL(window.location.href);
|
||||||
let pathSplit = [ "", "api", v ];
|
let pathSplit = [ "", "api", v ];
|
||||||
if (url.pathname.startsWith("/api/")) {
|
if (url.pathname.startsWith("/api/")) {
|
||||||
pathSplit.push(url.pathname.split('/').slice(4).join('/'));
|
pathSplit.push(url.pathname.split('/').slice(3).join('/'));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
pathSplit.push(url.pathname.substring(1));
|
pathSplit.push(url.pathname.substring(1));
|
||||||
|
|||||||
Reference in New Issue
Block a user