Replaced path function with URL::to