diff --git a/docs_src/assets/javascripts/version-select.js b/docs_src/assets/javascripts/version-select.js index 0fdd90ec72..3dc99017db 100644 --- a/docs_src/assets/javascripts/version-select.js +++ b/docs_src/assets/javascripts/version-select.js @@ -57,7 +57,8 @@ window.addEventListener("DOMContentLoaded", function () { if (this.value === '1.1') { window.location.href = "https://fuji-docs.edgexfoundry.org" } else { - window.location.href = "/" + this.value; + // replace version in the beginning of path with selected version + window.location.pathname = window.location.pathname.replace(/^\/(\d.\d)\//, `/${this.value}/`); } }); diff --git a/versions.json b/versions.json deleted file mode 100644 index 4ee2590c34..0000000000 --- a/versions.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - {"version": "1.1", "title": "1.1-Fuji", "aliases": []}, - {"version": "1.2", "title": "1.2-Geneva", "aliases": []}, - {"version": "1.3", "title": "1.3-Hanoi", "aliases": []}, - {"version": "2.0", "title": "2.0-Ireland", "aliases": []} -] \ No newline at end of file