Skip to content

Commit

Permalink
[Fix] Ignoring catalogsearch
Browse files Browse the repository at this point in the history
Close #19
  • Loading branch information
rafaelstz committed Dec 7, 2022
1 parent 7100721 commit 5e9f021
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions view/frontend/templates/quicklink.phtml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @author Rafael Corrêa Gomes <rafaelcgstz@gmail.com>
* @copyright Copyright (c) 2020.
* @copyright Copyright (c) 2023.
*/
/** @var $block \Rafaelcg\Quicklink\Block\QuickLink */
/** @var $viewModel \Rafaelcg\Quicklink\ViewModel\QuickLink */
Expand All @@ -18,9 +18,10 @@ $viewModel = $block->getViewModel();
ignores: [
/\/api\/?/,
uri => uri.includes('#'),
uri => uri.includes('logout'),
uri => uri.includes('account'),
uri => uri.includes('catalogsearch'),
uri => uri.includes('checkout'),
uri => uri.includes('logout'),
(uri, elem) => elem.hasAttribute('noprefetch')
]
});
Expand Down

0 comments on commit 5e9f021

Please sign in to comment.