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

not working after upgrade strapi 4.6.1 #90

Closed sal1ner0 closed 1 year ago

sal1ner0 commented 1 year ago

Hi there,

Just update strapi to 4.6.1 and plugin to 2.3.2.. and not working anymore.

Any known issue?

ComfortablyCoding commented 1 year ago

None that I am aware of. Can you post what your plugin config is and expand on what you meant by "it is not working"?

sal1ner0 commented 1 year ago

Hi again,

I just run some test and i can confirm if you are trying to rewrite the same field it no longer does it like it did before

Works properly if the field and references are different.

ComfortablyCoding commented 1 year ago

It's possible they changed something in the newest version, I'll have a look.

ComfortablyCoding commented 1 year ago

In this case you need to enable the shouldUpdateSlug option so it forces an update. Due to the circular reference if this option is not enabled it will skip the slugification as you will always have some content there.