@@ -288,6 +288,36 @@ var searchAndReplaceStrings = [
288288 searchForRegex : / h r e f = \\ " \/ v a c c i n a t i o n s \/ / gm,
289289 replaceWithStr : 'href=\\"https://www.nhs.uk/vaccinations/' ,
290290 } ,
291+ {
292+ comment1 : "=============================================================" ,
293+ comment2 : "Manifest pages " ,
294+ comment3 : "=============================================================" ,
295+ } ,
296+ {
297+ searchForRegex : / : \s ? " h t t p s : \/ \/ w w w .n h s .u k \/ c o n t e n t - a p i \/ m a n i f e s t \/ / gm,
298+ replaceWithStr :
299+ ': "https://' + requestHostnameEnv + "/nhs-website-content/manifest/" ,
300+ } ,
301+ {
302+ searchForRegex :
303+ / " w e b p a g e " : \s ? " h t t p s : \/ \/ i n t e r n a l - d e v .a p i .s e r v i c e .n h s .u k \/ n h s - w e b s i t e - c o n t e n t \/ / gm,
304+ replaceWithStr : '"webpage": "https://www.nhs.uk/' ,
305+ } ,
306+ {
307+ searchForRegex :
308+ / " w e b p a g e " : \s ? " h t t p s : \/ \/ i n t e r n a l - q a .a p i .s e r v i c e .n h s .u k \/ n h s - w e b s i t e - c o n t e n t \/ / gm,
309+ replaceWithStr : '"webpage": "https://www.nhs.uk/' ,
310+ } ,
311+ {
312+ searchForRegex :
313+ / " w e b p a g e " : \s ? " h t t p s : \/ \/ i n t .a p i .s e r v i c e .n h s .u k \/ n h s - w e b s i t e - c o n t e n t \/ / gm,
314+ replaceWithStr : '"webpage": "https://www.nhs.uk/' ,
315+ } ,
316+ {
317+ searchForRegex :
318+ / " w e b p a g e " : \s ? " h t t p s : \/ \/ a p i .s e r v i c e .n h s .u k \/ n h s - w e b s i t e - c o n t e n t \/ / gm,
319+ replaceWithStr : '"webpage": "https://www.nhs.uk/' ,
320+ } ,
291321] ;
292322
293323var responseContent = context . getVariable ( "response.content" ) ;
0 commit comments