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

slug with count #60

Closed spenya closed 2 years ago

spenya commented 2 years ago

When I add a slug with count, with references: title, for exemple. it changes the number each time I save the content, any field, so if someone bookmarks it, the link will not work if I update the content ...

ComfortablyCoding commented 2 years ago

Wierd, I believe i did test the case where title is not changed and slug count remained the same. I will need to look into this further.

selected-pixel-jameson commented 2 years ago

@ComfortablyCoding I'm having the same issue. This is a pretty significant issue as it makes the plug-in unusable in a production environment.

ComfortablyCoding commented 2 years ago

I have not had a chance to look into this yet, my PC died and did not get a new one yet.

LiquidITGuy commented 2 years ago

We got the same issues here. I put my flag to follow this issue

sebyoga commented 2 years ago

I have the same issues, some times save the content, title-slug-1, title-slug-2, title-slug-3... I follow this report.

selected-pixel-jameson commented 2 years ago

This definitely has something to do with the server caching something. If I test this locally it will keep increasing the count until I restart the server. At that point if I save the model again it will remove the count and start incrementing again until I restart the server.

selected-pixel-jameson commented 2 years ago

@ComfortablyCoding Can you please review my pull request?

ComfortablyCoding commented 2 years ago

Fix released in v2.2.3

Jasonlgrd commented 2 years ago

Hello,

When I add a slug with count, increment working correctly but when i restart local server yarn develop, count is reset to 0... Is normal ?

Thx

ComfortablyCoding commented 1 year ago

See #81