diff --git a/common/app/controllers/EmailSignupController.scala b/common/app/controllers/EmailSignupController.scala index 9e3427dc47a..9e8a1b38ec6 100644 --- a/common/app/controllers/EmailSignupController.scala +++ b/common/app/controllers/EmailSignupController.scala @@ -84,8 +84,13 @@ class EmailFormService(wsClient: WSClient, emailEmbedAgent: NewsletterSignupAgen .fields, ) + val queryStringParameters = form.ref.map("ref" -> _).toList ++ + form.refViewId.map("refViewId" -> _).toList ++ + form.listNames.map("listName" -> _).toList + wsClient .url(s"${Configuration.id.apiRoot}/consent-email") + .withQueryStringParameters(queryStringParameters: _*) .addHttpHeaders(getHeaders(request): _*) .post(consentMailerPayload) }