Skip to content

Commit 112cfc9

Browse files
author
Stanislav Idolov
authored
ENGCOM-2046: [Backport] ISSUE-14747 Newsletter subscription confirmation message does not dis… #15860
2 parents c7b70a4 + 11040a3 commit 112cfc9

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Newsletter/Controller/Subscriber

1 file changed

+3
-1
lines changed

app/code/Magento/Newsletter/Controller/Subscriber/Confirm.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public function execute()
3232
}
3333
}
3434

35-
$this->getResponse()->setRedirect($this->_storeManager->getStore()->getBaseUrl());
35+
$resultRedirect = $this->resultRedirectFactory->create();
36+
$resultRedirect->setUrl($this->_storeManager->getStore()->getBaseUrl());
37+
return $resultRedirect;
3638
}
3739
}

0 commit comments

Comments
 (0)