Search Within Path - Any known issues?
Permalink
I've implemented two instances of search on different pages in my site. One is a full site search, which works perfectly.
For the other, I've added a search block to my news section and specified to search only the pages below News.
Unfortunately, it's returning site-wide results, and not only results from the News section.
Is this a known issue in the current release (5.4)? Or did I do something wrong?
Thanks
For the other, I've added a search block to my news section and specified to search only the pages below News.
Unfortunately, it's returning site-wide results, and not only results from the News section.
Is this a known issue in the current release (5.4)? Or did I do something wrong?
Thanks
This should be fixed in the next version of concrete5. You're right, this bug crept in in a change to our search class. You can fix it yourself by changing this in concrete/blocks/search/controller.php.
Look for any instance of the function "addSearchPath" and change it to "filterByPath". There's likely only one.
Look for any instance of the function "addSearchPath" and change it to "filterByPath". There's likely only one.
Seems like an issue in 5.4, i think this worked like expected in 5.3.3.1.