Cs.redirect in a code studio event action rule


I’m trying to redirect to a page (1) from another page (2) whose context id is not the same. I have created a rule which fires on a signal on page (2) which executes a rule whose Response is a code studio event action. The event action has a cs.redirect statement in it which should redirect to a url (the url of a page within the same Liberty create application: not external). This is the cs.redirect statement:

I have output the url to the Detective, copied and pasted it into a browser and it displays the correct page and details.

Please could anyone let me know why the cs.redirect statement in the event action does not work ?



Also tried using a page path and that too does not work:
cs.redirect(CasePathPrefix + cs.ref(‘case_progression_page’) + CaseContextId);