I would rewrite this to use `utils.fullUrl`.