Skip to content

Commit 51b3710

Browse files
authored
Merge pull request #64068 from gabriel-rh/RHDEVDOCS-5358-fix-pageloader-js
RHDEVDOCS-5358 fix version dropdown for gitops
2 parents 21f3710 + 14f65a2 commit 51b3710

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

_javascripts/page-loader.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ function versionSelector(list) {
5252
newLink = "https://docs.openshift.com/serverless/" +
5353
newVersion +
5454
fileRequested;
55+
} else if (['1.8', '1.9'].contains(newVersion)) {
56+
// check and handle links for GitOps versions
57+
newLink = "https://docs.openshift.com/gitops/" +
58+
newVersion +
59+
fileRequested;
5560
} else {
5661
//if distro key is openshift enterprise
5762
if (dk == "openshift-enterprise") {
@@ -84,6 +89,8 @@ function versionSelector(list) {
8489
window.location = "https://google.com/search?q=site:https://docs.openshift.com/acs/" + newVersion + " " + document.title;}
8590
else if (['1.28', '1.29'].contains(newVersion)) {
8691
window.location = "https://google.com/search?q=site:https://docs.openshift.com/serverless/" + newVersion + " " + document.title;}
92+
else if (['1.8', '1.9'].contains(newVersion)) {
93+
window.location = "https://google.com/search?q=site:https://docs.openshift.com/gitops/" + newVersion + " " + document.title;}
8794
else {
8895
if (dk == "openshift-enterprise"){
8996
window.location = "https://google.com/search?q=site:https://docs.openshift.com/enterprise/" + newVersion + " " + document.title;

0 commit comments

Comments
 (0)