take referer url when hostname or path is not set