Skip to content

Commit d4063a7

Browse files
authored
Improved check to detect ajax requests v2
1 parent d989d6e commit d4063a7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Plugin/BlockPlugin.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ protected function isEnabled($block, $html)
108108
if (PHP_SAPI === 'cli'
109109
|| $this->request->isXmlHttpRequest()
110110
|| false !== stripos($this->request->getFullActionName(), 'ajax')
111-
|| false !== stripos($this->request->getServer('REQUEST_URI'), 'ajax')
112-
|| $this->request->getParam('ajax')
111+
|| false !== stripos($this->request->getServer('REQUEST_URI'), 'layerednavigationajax')
113112
|| $this->request->getParam('isAjax')
114113
) {
115114
return false;

0 commit comments

Comments
 (0)