Fix relative_urls helper for call from initialization code

Addendum to dda68feb00af381dd32e796a0ada2f3476c566de