Build URL dynamically