Hotfix/hostname router bug

Fixes the issue of the duplicated scheme/hostname in the urls generated