fix rest url and search