Webbist-dev / strapi-redirects

Manage redirects in Strapi
MIT License
14 stars 6 forks source link

New Redirection Types #20

Open thewickest opened 3 months ago

thewickest commented 3 months ago

I was wondering is there any way to create or remove the existing redirection types since I don't need all of them in my application and it could create some confusion to the editor while creating redirections. In the documentation in doesn't say anything about that but it would be cool to have it.

Thank you in advance.

Webbist-dev commented 3 months ago

Hey thanks for the suggestion :thumbsup:

I've covered all redirect types that might apply to a content type, so some use cases may require the other options. I'm looking to add a settings section, perhaps I can make use of this to make the enumerable conditional. However actual conditional fields are on the roadmap for Strapi v5 - it may make more sense for me to wait for this.

In the meantime the enumerable fields have to be set on the build of the content type when you restart strapi after installing the plugin.

You could run patch-package on my plugin to remove these before Strapi restarts. They are found in a single file that defines the component and it's fields.