marcuspi / module-product-url-key-generation
Slightly better support for URL key generation in Magento 2
Installs: 3 487
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:magento2-module
Requires
- php: ^7.1
- cocur/slugify: ^3.2
- magento/module-catalog: ^103
- magento/module-catalog-url-rewrite: ^100.3
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-16 19:35:52 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.