diff --git a/Block/Adminhtml/Preview.php b/Block/Adminhtml/Preview.php
index 0844b0d..9a905bf 100644
--- a/Block/Adminhtml/Preview.php
+++ b/Block/Adminhtml/Preview.php
@@ -4,8 +4,6 @@
class Preview extends \Magento\Framework\View\Element\Template
{
- const DEFAULT_STORE = 1;
-
/**
* @var \Magento\Framework\Registry
*/
@@ -60,7 +58,7 @@ public function getTags()
public function prepareUrl($value)
{
- $storeId = $this->getRequest()->getParam('store') ?? self::DEFAULT_STORE;
+ $storeId = $this->getRequest()->getParam('store') ?? $this->storeManager->getDefaultStoreView()->getId();
$pageType = $this->getPageType();