change hard coded route to use URL class.