strapi-community / strapi-plugin-slugify

A plugin for Strapi Headless CMS that provides the ability to auto slugify a field for any content type.
https://market.strapi.io/plugins/strapi-plugin-slugify
MIT License
45 stars 21 forks source link

Skip generating slug if field is set #77

Closed Namstel closed 2 years ago

Namstel commented 2 years ago

I'm looking for a way to prevent the plugin from generating a slug, if a user sets the field themselves.

We have a situation where the user may want to set the slug to something different for various reasons when creating an article, so the user edits the slug field, but when creating an item the plugin will not respect the data set in the slug field.

Is there a way to disable the plugin unless the slug field is empty?

ComfortablyCoding commented 2 years ago

Looks like a regression was introduced in v2.2.3 this should be fixed in #78 if shouldUpdateSlug is false (default).

ComfortablyCoding commented 2 years ago

Should be fixed in v2.3.1