Fix setting of target_url

Supports #392