strapi / nextjs-corporate-starter

Strapi Demo application for Corporate Websites using Next.js
MIT License
959 stars 285 forks source link

Category Slug Generation Doesn't Reflect Category's Name #64

Closed AnasGamal closed 11 months ago

AnasGamal commented 12 months ago

Issue: Currently, when the "generate" button is pressed to create a category slug, it always outputs "category" regardless of the actual category name.

Expected Behavior: The category slug generation should be based on the category's name. For example, if the category's name is "strapi," the slug should be automatically generated as "strapi" if it's available. If a slug with the same name already exists, it should generate a unique slug like "strapi-1" or similar.

AnasGamal commented 12 months ago

I created pull request #65 which addresses this issue. Please review and merge if possible.

PaulBratslavsky commented 11 months ago

@AnasGamal I will take a look. Apologies for the delay. Wanted to wait for the Strapi 4.12.1 update and fixes before making changes.

PaulBratslavsky commented 11 months ago

update: Merged @AnasGamal thank you for your help.