[bugfix] mock: remove all but pathname from url