correct the rest url