CMS frontend error after upgrading from v4.16.2 to a newer version

The route has been changed from
“/content-manager/collectionType/:slug/:id”
to
“/content-manager/collection-types/:slug/:id”.