Default behavior:
When I subscribed to newsletter then it displayed the success message in the same page itself.
What I want is:
When the customer or guest user subscribe to the newsletter I want them to be redirected to a custom page(cms page).In other words, I just want to display a separate thank you page after clicking "submit" button.
So, how can I achieve this?
Magento 2.2.6
Best Answer
Create a module with name STech_Subscription and create the files like below steps:
Step 1: Create registration.php under:
with below content:
Step 2: Create module.xml under:
with below content:
Step 3: Create di.xml under:
with below content:
Step 4: Create NewAction.php under:
with below content: