Fix logging of replacement URLs