diff --git a/scripts/main.js b/scripts/main.js index 76c3a1d..d85b2e9 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -36,7 +36,7 @@ if (hostname) { } else { // use version as specified in the version dropdown let selectedVersion = versionSelect.value; - if (selectedVersion === "openapi_latest"){ + if (selectedVersion === "openapi_latest" || version === "current"){ rapidoc.setAttribute("spec-url", `./definitions/openapi_latest.json`); } else { rapidoc.setAttribute("spec-url", `./definitions/${selectedVersion}.json`);