From 67e0caa2feca0af1687ff6ee50872dbef3a052c1 Mon Sep 17 00:00:00 2001 From: JulioV Date: Sun, 20 Dec 2020 17:03:11 -0500 Subject: [PATCH] Fix old versions banner on nested pages --- docs/change-log.md | 2 ++ docs/javascripts/extra.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/change-log.md b/docs/change-log.md index ca96f491..29ef7978 100644 --- a/docs/change-log.md +++ b/docs/change-log.md @@ -1,4 +1,6 @@ # Change Log +## v0.2.6 +- Fix old versions banner on nested pages ## v0.2.5 - Fix docs deploy typo ## v0.2.4 diff --git a/docs/javascripts/extra.js b/docs/javascripts/extra.js index 47b2f759..b6d5686d 100644 --- a/docs/javascripts/extra.js +++ b/docs/javascripts/extra.js @@ -1,6 +1,6 @@ window.addEventListener("DOMContentLoaded", function() { var xhr = new XMLHttpRequest(); - xhr.open("GET", window.location + "../versions.json"); + xhr.open("GET", window.location.origin + "/versions.json"); xhr.onload = function() { var versions = JSON.parse(this.responseText); latest_version = ""