Skip to content

Commit 1ad3650

Browse files
Merge pull request #79101 from agantony/ROX24201-main-release-pr
[RHACS] ROX#24201- Update ACS redirects and version selector for RHACS 4.5 release
2 parents 4b1d155 + 0d0de47 commit 1ad3650

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
@@ -138,13 +138,13 @@ AddType text/vtt vtt
138138
# ACS Redirects to go to the latest version - change here when a new version drops
139139
# it should probably be best to combine the next few lines in one reg exp but for clarity keeping them separate
140140
# the first one redirects
141-
RewriteRule ^acs/?$ /acs/4.4/welcome/index.html [R=301]
141+
RewriteRule ^acs/?$ /acs/4.5/welcome/index.html [R=301]
142142
# redirect to the latest release notes
143-
RewriteRule ^acs/release_notes/?$ /acs/4.4/release_notes/44-release-notes.html [R=301,NE]
143+
RewriteRule ^acs/release_notes/?$ /acs/4.5/release_notes/45-release-notes.html [R=301,NE]
144144
# redirect from ACS CLoud Service page
145-
RewriteRule ^acs/installing/install-ocp-operator.html /acs/4.4/installing/installing_ocp/init-bundle-ocp.html [NE,R=301]
146-
RewriteRule ^acs/(\D.*)$ /acs/4.4/$1 [NE,R=301]
147-
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)/?$ /acs/$1/welcome/index.html [L,R=301]
145+
RewriteRule ^acs/installing/install-ocp-operator.html /acs/4.5/installing/installing_ocp/init-bundle-ocp.html [NE,R=301]
146+
RewriteRule ^acs/(\D.*)$ /acs/4.5/$1 [NE,R=301]
147+
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)/?$ /acs/$1/welcome/index.html [L,R=301]
148148
#redirect for 4.0 Manage vulneribility page
149149
RewriteRule ^(acs/(?:4\.0/)?)?operating/manage-vulnerabilities\.html$ /acs/4.0/operating/manage-vulnerabilities/vulnerability-management.html [NE,R=301]
150150
#redirect for missing 4.3 page

_distro_map.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@ openshift-acs:
310310
rhacs-docs-4.4:
311311
name: '4.4'
312312
dir: acs/4.4
313+
rhacs-docs-4.5:
314+
name: '4.5'
315+
dir: acs/4.5
313316
microshift:
314317
name: Red Hat build of MicroShift
315318
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
@@ -196,6 +196,7 @@
196196
<%= distro %>
197197
</a>
198198
<select id="version-selector" onchange="versionSelector(this);">
199+
<option value="4.5">4.5</option>
199200
<option value="4.4">4.4</option>
200201
<option value="4.3">4.3</option>
201202
<option value="4.2">4.2</option>

index-commercial.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ <h2>Red Hat Advanced Cluster Security for Kubernetes</h2>
244244
<div class="btn-group">
245245
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">Select version<span class="caret"></span></button>
246246
<ul class="dropdown-menu" role="menu">
247+
<li><a href="acs/4.5/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.5</a></li>
247248
<li><a href="acs/4.4/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.4</a></li>
248249
<li><a href="acs/4.3/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.3</a></li>
249250
<li><a href="acs/4.2/welcome/index.html"><i class="fa fa-arrow-circle-o-right"></i> RHACS 4.2</a></li>

0 commit comments

Comments
 (0)