Skip to content

Commit f6f8166

Browse files
author
Agil Antony
committed
ROX29156 Update ACS redirects and version selector for RHACS 4.8 release
1 parent c226350 commit f6f8166

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.7/welcome/index.html [R=301]
144+
RewriteRule ^acs/?$ /acs/4.8/welcome/index.html [R=301]
145145
# redirect to the latest release notes
146-
RewriteRule ^acs/release_notes/?$ /acs/4.7/release_notes/47-release-notes.html [R=301,NE]
146+
RewriteRule ^acs/release_notes/?$ /acs/4.8/release_notes/47-release-notes.html [R=301,NE]
147147
# redirect from ACS CLoud Service page
148-
RewriteRule ^acs/installing/install-ocp-operator.html /acs/4.7/installing/installing_ocp/init-bundle-ocp.html [NE,R=301]
149-
RewriteRule ^acs/(\D.*)$ /acs/4.7/$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)/?$ /acs/$1/welcome/index.html [L,R=301]
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]
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
@@ -334,6 +334,9 @@ openshift-acs:
334334
rhacs-docs-4.7:
335335
name: '4.7'
336336
dir: acs/4.7
337+
rhacs-docs-4.8:
338+
name: '4.8'
339+
dir: acs/4.8
337340
microshift:
338341
name: Red Hat build of MicroShift
339342
author: OpenShift Documentation Project <[email protected]>

_templates/_page_openshift.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@
260260
<%= distro %>
261261
</a>
262262
<select id="version-selector" onchange="versionSelector(this);">
263+
<option value="4.8">4.8</option>
263264
<option value="4.7">4.7</option>
264265
<option value="4.6">4.6</option>
265266
<option value="4.5">4.5</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.8/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.8</a></li>
254255
<li><a href="acs/4.7/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.7</a></li>
255256
<li><a href="acs/4.6/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.6</a></li>
256257
<li><a href="acs/4.5/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.5</a></li>

0 commit comments

Comments
 (0)