add query to path links in search page