File tree Expand file tree Collapse file tree
live/apiproxy/resources/jsc
sandbox/apiproxy/resources/jsc Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -332,6 +332,15 @@ var searchAndReplaceStrings = [
332332 searchForRegex : / \s + d a t a - b l o c k - k e y = \\ " [ ^ " ] * \\ " / gm,
333333 replaceWithStr : "" ,
334334 } ,
335+ {
336+ comment1 : "=============================================================" ,
337+ comment2 : "Convert any remaining relative HREFs to absolute HREFs " ,
338+ comment3 : "=============================================================" ,
339+ } ,
340+ {
341+ searchForRegex : / h r e f = \\ " \/ / gm,
342+ replaceWithStr : 'href=\\"https://www.nhs.uk/' ,
343+ } ,
335344] ;
336345
337346var responseContent = context . getVariable ( "response.content" ) ;
Original file line number Diff line number Diff line change 277277// searchForRegex: /\s+data-block-key=\\"[^"]*\\"/gm,
278278// replaceWithStr: "",
279279// },
280+ // {
281+ // comment1: "=============================================================",
282+ // comment2: "Convert any remaining relative HREFs to absolute HREFs ",
283+ // comment3: "=============================================================",
284+ // },
285+ // {
286+ // searchForRegex: /href=\\"\//gm,
287+ // replaceWithStr: 'href=\\"https://www.nhs.uk/',
288+ // },
280289// ];
281290
282291var responseContent = context . getVariable ( "response.content" ) ;
You can’t perform that action at this time.
0 commit comments