Skip to content

Commit ed9c9cb

Browse files
authored
Merge pull request #76323 from mramendi/RHDEVDOCD-6059
2 parents d7e65a1 + e3c2471 commit ed9c9cb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

_javascripts/page-loader.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ function versionSelector(list) {
1818
"use strict";
1919

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

2728
let baseUrl = urlMappings[dk];

0 commit comments

Comments
 (0)