Skip to content

Commit

Permalink
RHDEVDOCS 6059 fix currentVersion in loader.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mramendi committed May 21, 2024
1 parent 1c88f88 commit e3c2471
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions _javascripts/page-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ function versionSelector(list) {
"use strict";

newVersion = list[list.selectedIndex].value;
if (dk === "openshift-enterprise") {
currentVersion = window.location.pathname.split("/")[2];
} else if (dk === "openshift-origin") {

if (dk === "openshift-origin") {
currentVersion = window.location.pathname.split("/")[1];
} else {
currentVersion = window.location.pathname.split("/")[2];
}

let baseUrl = urlMappings[dk];
Expand Down

0 comments on commit e3c2471

Please sign in to comment.