Fix way how url are build in resource owners

Refs #235.