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

camelCasing becomes camel-casing #73

Closed oDinZu closed 2 years ago

oDinZu commented 2 years ago

I am unsure if this is a bug or a feature or both, dependent upon ones relative spacetime needs.

The slugify option turns camelCasing into camel-casing lowercase with the hyphen for friendly URL's.

It took the title of a webpage called WebPage and split the title of the post into web-page and created unfriendly post search engine optimization.

ComfortablyCoding commented 2 years ago

This is due to the default options of the underlying library being used.

If you add the lowercase and decamilize options as false in the plugins slugifyOptions property it should produce the slug as you want it.