diff --git a/src/Controller/Index/Index.php b/src/Controller/Index/Index.php index a2e09e0..f9fae99 100755 --- a/src/Controller/Index/Index.php +++ b/src/Controller/Index/Index.php @@ -66,9 +66,8 @@ public function execute() { $resultPage = $this->resultPageFactory->create(); - $resultPage->getConfig()->getTitle()->set( - $this->scopeConfig->getValue(self::META_TITLE_CONFIG_PATH, ScopeInterface::SCOPE_STORE) - ); + $pageTitle = $this->scopeConfig->getValue(self::META_TITLE_CONFIG_PATH, ScopeInterface::SCOPE_STORE); + $resultPage->getConfig()->getTitle()->set($pageTitle); $resultPage->getConfig()->setDescription( $this->scopeConfig->getValue(self::META_DESCRIPTION_CONFIG_PATH, ScopeInterface::SCOPE_STORE) ); @@ -90,7 +89,7 @@ public function execute() $breadcrumbsBlock->addCrumb( 'stockists', [ - 'label' => __('Stockists'), + 'label' => $pageTitle, ] ); }