Do not pickup js/images/etc... in search query in custom middleware