marcuspi/module-product-url-key-generation

Slightly better support for URL key generation in Magento 2

0.1.1 2019-10-16 08:45 UTC

This package is auto-updated.

Last update: 2024-04-16 18:38:48 UTC


README

A somewhat smarter approach for auto-generating URL keys for products

Installation

Install using composer (Packagist details)

composer require marcuspi/module-product-url-key-generation

Usage

The module will autogenerate a URL key for any products that are created with a blank or missing url_key attribute via the REST WebAPI.

You can select which language to use as a base for slug generation (ie, Austrian users will want ß -> sz, not ß -> ss) in the backend under Stores -> Configuration -> Catalog -> Catalog -> Search Engine Optimization. It defaults to the store language.

Thanks

This module uses the amazing slugify library.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT