handle mock URL consistently