Generate proper URIs for routes