replace params in path