Skip to content

Commit 9c774fa

Browse files
Merge pull request #101187 from agantony/ROX30712-main
[RHACS] [Docs] ROX-30712: Update ACS redirects and version selector for RHACS 4.9 release
2 parents 8164af1 + 749a32d commit 9c774fa

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

.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.8/welcome/index.html [R=301]
144+
RewriteRule ^acs/?$ /acs/4.9/welcome/index.html [R=301]
145145
# redirect to the latest release notes
146-
RewriteRule ^acs/release_notes/?$ /acs/4.8/release_notes/47-release-notes.html [R=301,NE]
146+
RewriteRule ^acs/release_notes/?$ /acs/4.9/release_notes/49-release-notes.html [R=301,NE]
147147
# redirect from ACS CLoud Service page
148-
RewriteRule ^acs/installing/install-ocp-operator.html /acs/4.8/installing/installing_ocp/init-bundle-ocp.html [NE,R=301]
149-
RewriteRule ^acs/(\D.*)$ /acs/4.8/$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)/?$ /acs/$1/welcome/index.html [L,R=301]
148+
RewriteRule ^acs/installing/install-ocp-operator.html /acs/4.9/installing/installing_ocp/init-bundle-ocp.html [NE,R=301]
149+
RewriteRule ^acs/(\D.*)$ /acs/4.9/$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)/?$ /acs/$1/welcome/index.html [L,R=301]
151151
#redirect for 4.0 Manage vulneribility 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
@@ -346,6 +346,9 @@ openshift-acs:
346346
rhacs-docs-4.8:
347347
name: '4.8'
348348
dir: acs/4.8
349+
rhacs-docs-4.9:
350+
name: '4.9'
351+
dir: acs/4.9
349352
microshift:
350353
name: Red Hat build of MicroShift
351354
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.9">4.9</option>
266267
<option value="4.8">4.8</option>
267268
<option value="4.7">4.7</option>
268269
<option value="4.6">4.6</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.9/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.9</a></li>
254255
<li><a href="acs/4.8/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.8</a></li>
255256
<li><a href="acs/4.7/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.7</a></li>
256257
<li><a href="acs/4.6/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.6</a></li>

0 commit comments

Comments
 (0)