Skip to content

Commit 38bdd35

Browse files
committed
OLS-880: Create redirect from OCP stub page to OLS standalone content
1 parent b6757ea commit 38bdd35

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.s2i/httpd-cfg/01-commercial.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,16 @@ AddType text/vtt vtt
351351
RewriteRule ^container-platform/(4\.11|4\.12|4\.13|4\.14|4\.15|4\.16|4\.17|4\.18)/cicd/gitops/collecting-debugging-data-for-support.html /gitops/latest/understanding_openshift_gitops/gathering-gitops-diagnostic-information-for-support.html [L,R=302]
352352
RewriteRule ^container-platform/(4\.11|4\.12|4\.13|4\.14|4\.15|4\.16|4\.17|4\.18)/cicd/gitops/troubleshooting-issues-in-GitOps.html /gitops/latest/troubleshooting_gitops_issues/auto-reboot-during-argo-cd-sync-with-machine-configurations.html [L,R=302]
353353

354+
355+
# Lightspeed handling unversioned and latest links
356+
RewriteRule ^lightspeed/?$ /lightspeed/latest [R=302]
357+
RewriteRule ^lightspeed/latest/?(.*)$ /lightspeed/1\.0tp1/$1 [NE,R=302]
358+
359+
# Lightspeed landing page
360+
361+
RewriteRule ^container-platform/(4\.9|4\.10|4\.11|4\.12|4\.13|4\.14|4\.15|4\.16|4\.17|4\.18)/lightspeed/about/ols-openshift-lightspeed-overview.html /lightspeed/latest/about/ols-about-openshift-lightspeed.html [NE,R=302]
362+
363+
354364
# Pipelines handling unversioned and latest links
355365
RewriteRule ^pipelines/?$ /pipelines/latest [R=302]
356366
RewriteRule ^pipelines/latest/?(.*)$ /pipelines/1\.15/$1 [NE,R=302]

_templates/_page_openshift.html.erb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,13 @@
264264
<option value="1.9">1.9</option>
265265
<option value="1.8">1.8</option>
266266
</select>
267+
<% elsif (distro_key == "openshift-lightspeed") %>
268+
<a href="https://docs.openshift.com/lightspeed/<%= version %>/about/ols-openshift-lightspeed-overview.html">
269+
<%= distro %>
270+
</a>
271+
<select id="version-selector" onchange="versionSelector(this);">
272+
<option value="1.0tp1">1.0tp1</option>
273+
</select>
267274
<% elsif (distro_key == "openshift-telco") %>
268275
<a href="https://docs.openshift.com/container-platform-telco/<%= version %>/welcome/index.html">
269276
<%= distro %>

0 commit comments

Comments
 (0)