Skip to content

Commit 5665d8f

Browse files
author
Agil Antony
committed
ROX28553 Update ACS redirects and version selector for RHACS 4.7 release
1 parent 325c16e commit 5665d8f

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.6/welcome/index.html [R=301]
144+
RewriteRule ^acs/?$ /acs/4.7/welcome/index.html [R=301]
145145
# redirect to the latest release notes
146-
RewriteRule ^acs/release_notes/?$ /acs/4.6/release_notes/46-release-notes.html [R=301,NE]
146+
RewriteRule ^acs/release_notes/?$ /acs/4.7/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.6/installing/installing_ocp/init-bundle-ocp.html [NE,R=301]
149-
RewriteRule ^acs/(\D.*)$ /acs/4.6/$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)/?$ /acs/$1/welcome/index.html [L,R=301]
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]
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
@@ -325,6 +325,9 @@ openshift-acs:
325325
rhacs-docs-4.6:
326326
name: '4.6'
327327
dir: acs/4.6
328+
rhacs-docs-4.7:
329+
name: '4.7'
330+
dir: acs/4.7
328331
microshift:
329332
name: Red Hat build of MicroShift
330333
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
@@ -260,6 +260,7 @@
260260
<%= distro %>
261261
</a>
262262
<select id="version-selector" onchange="versionSelector(this);">
263+
<option value="4.7">4.7</option>
263264
<option value="4.6">4.6</option>
264265
<option value="4.5">4.5</option>
265266
<option value="4.4">4.4</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.7/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.7</a></li>
254255
<li><a href="acs/4.6/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.6</a></li>
255256
<li><a href="acs/4.5/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.5</a></li>
256257
<li><a href="acs/4.4/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.4</a></li>

0 commit comments

Comments
 (0)