build the full url correctly