Skip to content

Commit 641b90f

Browse files
authored
Merge pull request #113382 from kcarmichael08/rhacs-release-411-redirects
ROX-34867: RHACS: Create redirects and selectors for 4.11 release
2 parents 0a941d2 + 2484ff9 commit 641b90f

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ AddType text/vtt vtt
141141
# ACS Redirects to go to the latest version - change here when a new version drops
142142
# it should probably be best to combine the next few lines in one reg exp but for clarity keeping them separate
143143
# the first one redirects
144-
RewriteRule ^acs/?$ /acs/4.10/welcome/index.html [R=301]
144+
RewriteRule ^acs/?$ /acs/4.11/welcome/index.html [R=301]
145145
# redirect to the latest release notes
146-
RewriteRule ^acs/release_notes/?$ /acs/4.10/release_notes/410-release-notes.html [R=301,NE]
146+
RewriteRule ^acs/release_notes/?$ /acs/4.11/release_notes/410-release-notes.html [R=301,NE]
147147
# redirect from ACS CLoud Service page
148-
RewriteRule ^acs/installing/install-ocp-operator.html /acs/4.10/installing/installing_ocp/init-bundle-ocp.html [NE,R=301]
149-
RewriteRule ^acs/(\D.*)$ /acs/4.10/$1 [NE,R=301]
150-
RewriteRule ^acs/(3\.65|3\.66|3\.67|3\.68|3\.69|3\.70|3\.71|3\.72|3\.73|3\.74|4\.0|4\.1|4\.2|4\.3|4\.4|4\.5|4\.6|4\.7|4\.8|4\.9|4\.10)/?$ /acs/$1/welcome/index.html [L,R=301]
148+
RewriteRule ^acs/installing/install-ocp-operator.html /acs/4.11/installing/installing_ocp/init-bundle-ocp.html [NE,R=301]
149+
RewriteRule ^acs/(\D.*)$ /acs/4.11/$1 [NE,R=301]
150+
RewriteRule ^acs/(3\.65|3\.66|3\.67|3\.68|3\.69|3\.70|3\.71|3\.72|3\.73|3\.74|4\.0|4\.1|4\.2|4\.3|4\.4|4\.5|4\.6|4\.7|4\.8|4\.9|4\.10|4\.11)/?$ /acs/$1/welcome/index.html [L,R=301]
151151
#redirect for 4.0 Manage vulnerability page
152152
RewriteRule ^(acs/(?:4\.0/)?)?operating/manage-vulnerabilities\.html$ /acs/4.0/operating/manage-vulnerabilities/vulnerability-management.html [NE,R=301]
153153
#redirect for missing 4.3 page

_distro_map.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,9 @@ openshift-acs:
364364
rhacs-docs-4.10:
365365
name: '4.10'
366366
dir: acs/4.10
367+
rhacs-docs-4.11:
368+
name: '4.11'
369+
dir: acs/4.11
367370
microshift:
368371
name: Red Hat build of MicroShift
369372
author: OpenShift Documentation Project <openshift-docs@redhat.com>

_templates/_page_openshift.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@
263263
<%= distro %>
264264
</a>
265265
<select id="version-selector" onchange="versionSelector(this);">
266+
<option value="4.11">4.11</option>
266267
<option value="4.10">4.10</option>
267268
<option value="4.9">4.9</option>
268269
<option value="4.8">4.8</option>

index-commercial.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ <h2>Red Hat Advanced Cluster Security for Kubernetes</h2>
251251
<div class="btn-group">
252252
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">Select version<span class="caret"></span></button>
253253
<ul class="dropdown-menu" role="menu">
254+
<li><a href="acs/4.11/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.11</a></li>
254255
<li><a href="acs/4.10/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.10</a></li>
255256
<li><a href="acs/4.9/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.9</a></li>
256257
<li><a href="acs/4.8/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.8</a></li>

0 commit comments

Comments
 (0)