Document url middleware.