You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to retrieve a CMS Page over the cmsPage query the links aren't set.
This occurres because in MageWorx\SeoCrossLinks\Model\Observer\AddCrosslinksToPageObserver on line 117 the request FullActionName is compared to a hardcoded 'cms_page_view'. In GraphQl the FullActionName is '__', since the request route, controller and action name are null. So the comparison fails and the observer returns early without applying the links.
if (!in_array($this->request->getFullActionName(), $this->_getAvailableActions())) {
return true;
}
protected function _getAvailableActions()
{
return array('cms_page_view');
}
Solution: if the area code by Magento\Framework\App\State::getAreaCode() is 'graphql' do not compare the action names.
The text was updated successfully, but these errors were encountered:
after additional research we discovered that the problem is related to the base SEO extension.
We've already fixed the issue, however it will take a while to release the update.
As for now, please update the extension to the newest version and replace the following file with the file attached:
app/code/MageWorx/Model/Observer/AddCrosslinksToPageObserver.php
When trying to retrieve a CMS Page over the cmsPage query the links aren't set.
This occurres because in MageWorx\SeoCrossLinks\Model\Observer\AddCrosslinksToPageObserver on line 117 the request FullActionName is compared to a hardcoded 'cms_page_view'. In GraphQl the FullActionName is '__', since the request route, controller and action name are null. So the comparison fails and the observer returns early without applying the links.
Solution: if the area code by Magento\Framework\App\State::getAreaCode() is 'graphql' do not compare the action names.
The text was updated successfully, but these errors were encountered: