Fix EZP-23505: Router generates wrong URL without vhost

JIRA: https://jira.ez.no/browse/EZP-23505