@rafaaycodes/strapi-plugin-import-export
v1.0.3
Published
Import/Export data from and to your database in just few clicks.
Maintainers
Readme
License
This fork is licensed under the MIT License.
Original plugin strapi-plugin-import-export-entries by Baboo is also MIT licensed.
This fork gives full credit to Baboo for the original work.
I do not claim ownership of the original code; this fork only contains a bug fix for Strapi v4.17+.
About This Fork
This fork was created to fix a bug in Strapi v4.17+ related to the content-manager pathname for collection types.
In Strapi v4.17.0+, the path changed
from: admin/content-manager/collectionType/plugin::users-permissions.user
to: admin/content-manager/collection-types/plugin::users-permissions.user
This caused the export functionality to break.
Fix
The issue was fixed in the useSlug function by updating the regex:
- const matches = pathname.match(/content-manager\/(collectionType|singleType)\/([a-zA-Z0-9\-:_.]*)/);
+ const matches = pathname.match(/content-manager\/(collection-types|single-types)\/([a-zA-Z0-9\-:_.]*)/);
Fully working with Strapi v4