Skip to content

Commit 306cc65

Browse files
committed
Removed obsolete _redirect method call
1 parent a53f7fc commit 306cc65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Controller/Product/Compare.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ public function setCustomerId($customerId)
141141
}
142142

143143
/**
144-
* {@inheritdoc}
144+
* @inheritdoc
145145
*/
146146
public function execute()
147147
{
148-
return $this->_redirect('catalog/product_compare');
148+
return $this->resultRedirectFactory->create()->setPath('catalog/product_compare');
149149
}
150150

151151
}

0 commit comments

Comments
 (0)