strapi-community / strapi-plugin-slugify

A plugin for Strapi Headless CMS that provides the ability to auto slugify a field for any content type.

Home Page:https://market.strapi.io/plugins/strapi-plugin-slugify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Skip generating slug if field is set

Namstel opened this issue · comments

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?

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

Should be fixed in v2.3.1