Add a function to generate a full url.