generate_url now more useful as it concatenates urls