Skip to content

Commit 5a437b2

Browse files
authored
Feature/syn 744 (#92)
* Search and Replace for ‘Secure protocol and www subdomain’ * Moved to the top, so they get replaced first
1 parent 333b45a commit 5a437b2

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

proxies/live/apiproxy/resources/jsc/SearchAndReplaceResponse.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
var requestHostnameEnv = context.getVariable("request_hostname_env");
22

33
var searchAndReplaceStrings = [
4+
{
5+
comment1: "=============================================================",
6+
comment2: "Secure protocol and www subdomain ",
7+
comment3: "=============================================================",
8+
},
9+
{
10+
searchForRegex: /http:\/\/www.nhs.uk/gm,
11+
replaceWithStr: "https://www.nhs.uk",
12+
},
13+
{
14+
searchForRegex: /http:\/\/nhs.uk/gm,
15+
replaceWithStr: "https://www.nhs.uk",
16+
},
17+
{
18+
searchForRegex: /https:\/\/nhs.uk/gm,
19+
replaceWithStr: "https://www.nhs.uk",
20+
},
421
{
522
comment1: "=============================================================",
623
comment2: "Conditions ",

0 commit comments

Comments
 (0)