diff --git a/src/assets/js/src/versioning/tag-versions.req.js b/src/assets/js/src/versioning/tag-versions.req.js index e52d1b9..82482f9 100644 --- a/src/assets/js/src/versioning/tag-versions.req.js +++ b/src/assets/js/src/versioning/tag-versions.req.js @@ -1,6 +1,6 @@ (function () { const versionsJson = $('body').data('api-versions-json'); - const defaultUrl = $('body').data('default-url'); + const defaultUrl = $('body').attr('default-url'); $.ajax({ url: versionsJson, type: "get", @@ -14,18 +14,19 @@ folders = folders.reverse(); folders.forEach(function (f) { - const versionUrl = defaultUrl.replace("typescript/latest'", f + "/typescript") + const versionUrl = defaultUrl.replace("typescript/latest", f + "/typescript"); select.append($('