pluginpal / strapi-webtools

🔗 Unique, flexible and autogenerated URLs for your Strapi managed web content.
https://www.pluginpal.io/plugin/webtools
MIT License
34 stars 14 forks source link

Could we use an actual slugify? #184

Open laurenskling opened 2 months ago

laurenskling commented 2 months ago

If i'm correct, https://github.com/pluginpal/strapi-webtools/blob/master/packages/core/server/admin-api/services/url-pattern.ts#L242 here the plugin kebabCases the pattern, thats it. I'd like to be able to support my current slugs, which could contain multiple slashes, making subpages. They are deleted by the kebabCase function. Maybe we can use @sindresorhus/slugify (like core strapi uses) and allow to set the options?

boazpoolman commented 2 months ago

Great suggestion!