change hard coded route to use URL class.
Merge pull request #29 from andrew13/patch-1

change hard coded route to use URL class.