generate route if it doesn't exist in the request and use the route's path as the context for the item