Skip to content

magento 2.4 index page #97

@crodar33

Description

@crodar33

Hi
trustpilot module version 2.6.564
Had issue with check index page, in this place, on index page, I got cms_page_view instead of cms_index_index
if ($this->_request->getFullActionName() == 'cms_index_index') {
temporary solved it by:

--- a/Block/Trustbox.php
+++ b/Block/Trustbox.php
@@ -65,7 +65,8 @@
                     $trustboxSettings->categoryProductsData = $this->loadCategoryProductInfo($scope, $storeId, $currentCategory);
                 }
             }
-            if ($this->_request->getFullActionName() == 'cms_index_index') {
+            #if ($this->_request->getFullActionName() == 'cms_index_index') {
+            if (in_array('cms_index_index', $this->getLayout()->getUpdate()->getHandles())) {
                 $loadedTrustboxes = array_merge((array)$this->loadPageTrustboxes($settings, 'landing'), (array)$loadedTrustboxes);
             }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions