Smarter URL building.