Skip to content

Commit 1f66421

Browse files
committed
Remove redirect to the same page. Left default Magento redirect to Customer account page
1 parent d790198 commit 1f66421

File tree

1 file changed

+0
-3
lines changed
  • app/code/Magento/Newsletter/Controller/Manage

1 file changed

+0
-3
lines changed

app/code/Magento/Newsletter/Controller/Manage/Save.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ public function execute()
9696
->unsubscribeCustomerById($customerId);
9797
$this->messageManager->addSuccess(__('We removed the subscription.'));
9898
}
99-
} else {
100-
$this->_redirect('newsletter/manage/');
101-
return;
10299
}
103100
} catch (\Exception $e) {
104101
$this->messageManager->addError(__('Something went wrong while saving your subscription.'));

0 commit comments

Comments
 (0)