Skip to content

Commit 8d77a03

Browse files
authored
Tweak to sandbox search and replace (#84)
* Point 'url' to website page (not the API endpoint) * Adding as ‘webpage’ property * Moved comments in to their own objects * Added a value for the ‘homepage’ in the ‘pyproject.toml’ file * Tweak to sandbox search and replace
1 parent b355ba3 commit 8d77a03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ for (var i = 0; i < searchAndReplaceStrings.length; i++) {
186186

187187
var responseJsonObj = JSON.parse(responseContent);
188188
responseJsonObj.webpage = responseJsonObj.url.replace(
189-
"https://" + requestHostnameEnv + "/nhs-website-content/",
189+
"https://api.service.nhs.uk/nhs-website-content/",
190190
"https://www.nhs.uk/"
191191
);
192192
responseContent = JSON.stringify(responseJsonObj);

0 commit comments

Comments
 (0)