nova-slug-field icon indicating copy to clipboard operation
nova-slug-field copied to clipboard

when i enter "ü" slug generate me "ue", when i enter "ə" slug generate me "-". please fix it

Open Energon7 opened this issue 6 years ago • 3 comments

Energon7 avatar Nov 26 '18 06:11 Energon7

Currently I'm generating the slug via Java Script. I'm using this https://www.npmjs.com/package/speakingurl library for the slug generation. You can pass the options via ->slugifyOptions(['key' => 'value']). Maybe there simply has to be set a specific option?

What is your expected result when you enter "ə"?

benjaminhirsch avatar Apr 21 '19 13:04 benjaminhirsch

ə -> e

Other package for slug working correctly. You can find it on novapackages.com

Energon7 avatar Apr 22 '19 21:04 Energon7

Hi

I know this is an old thread, but recently I got an apostrophe issue so found this thread and also got the solution.

->slugifyOptions( ['custom' => ['&' => 'doo']] )

As per official doc

slug = getSlug('Foo & Bar * Baz', { custom: { '&': ' doo ' }, uric:true }); console.log(slug); // Output: foo-doo-bar-baz

francissebin2hats avatar Oct 25 '21 09:10 francissebin2hats