Using the below mentioned code for adding contact in List manager using EXM in SXA Sitecore 9.1.1.
public ISubscriptionManager SubscriptionManager { get; }
public EmailSubscriptionRepository(ISubscriptionManager subscriptionManager)
{
SubscriptionManager = subscriptionManager;
}
After injecting this we are using below code
SubscriptionManager.Subscribe(contact.Identifiers.FirstOrDefault(), Guid.Parse(emailCampaignId), true);
This code is working fine and sending a Subscription confirmation email but when we click on the link which is mentioned in the mail it stuck on below url
https://domainname/sitecore%20modules/Web/EXM/ConfirmSubscription.aspx?ec_subscr=9J6G6D2D2184B60B6E00A8ECE41RFED
Final Confirmation Page - The page displayed after a visitor changes their subscription:
on your EXM Manager Root?