Skip to content

Commit ae1439e

Browse files
authored
Merge pull request #69957 from peterroth/parse-correct-field
[OKD] GH #68234 Parse correct field for OKD
2 parents 9079644 + b417916 commit ae1439e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_javascripts/page-loader.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ function versionSelector(list) {
1717
"use strict";
1818

1919
newVersion = list[list.selectedIndex].value;
20-
currentVersion = window.location.pathname.split("/")[2];
20+
if (dk === "openshift-enterprise") {
21+
currentVersion = window.location.pathname.split("/")[2];
22+
} else if (dk === "openshift-origin") {
23+
currentVersion = window.location.pathname.split("/")[1];
24+
}
2125

2226
let baseUrl = urlMappings[dk];
2327

0 commit comments

Comments
 (0)