fix a problem with localsearch where it does not work when the site url is not at the root but includes a folder