Some simpler logic for how the URLs are generated.