We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68968c4 commit d989d6eCopy full SHA for d989d6e
Plugin/BlockPlugin.php
@@ -105,7 +105,13 @@ public function afterToHtml(\Magento\Framework\View\Element\AbstractBlock $block
105
*/
106
protected function isEnabled($block, $html)
107
{
108
- if (PHP_SAPI === 'cli' || $this->request->isXmlHttpRequest()) {
+ if (PHP_SAPI === 'cli'
109
+ || $this->request->isXmlHttpRequest()
110
+ || false !== stripos($this->request->getFullActionName(), 'ajax')
111
+ || false !== stripos($this->request->getServer('REQUEST_URI'), 'ajax')
112
+ || $this->request->getParam('ajax')
113
+ || $this->request->getParam('isAjax')
114
+ ) {
115
return false;
116
}
117
0 commit comments