Skip to content

Commit 333b45a

Browse files
authored
Commented out the Search and Replace in Sandbox (#91)
* Commented out the Search and Replace in Sandbox * Added a check for responseJsonObj.about
1 parent cfd9867 commit 333b45a

2 files changed

Lines changed: 197 additions & 196 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ if (responseJsonObj.url) {
229229
"https://" + requestHostnameEnv + "/nhs-website-content/",
230230
"https://www.nhs.uk/"
231231
);
232-
} else if (responseJsonObj.about.url) {
232+
} else if (responseJsonObj.about && responseJsonObj.about.url) {
233233
responseJsonObj.about.webpage = responseJsonObj.about.url.replace(
234234
"https://" + requestHostnameEnv + "/nhs-website-content/",
235235
"https://www.nhs.uk/"

0 commit comments

Comments
 (0)