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

camelCasing becomes camel-casing

oDinZu opened this issue · comments

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.

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.