sisl-source / magento2-regenerate-url-rewrites
Add into Magento 2 a CLI feature which allow to regenerate a Url Rewrites of products and categories
Package info
github.com/SISL-source/magento2-regenerate-url-rewrites
Type:magento2-module
pkg:composer/sisl-source/magento2-regenerate-url-rewrites
Requires
- php: ~8.1.0||~8.2.0||~8.3.0||~8.4.0||~8.5.0
- magento/framework: >=103.0.4 <104
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A CLI command that regenerates product and category URL rewrites in Magento 2 — the fix for duplicate, missing or broken URLs after an import, a category move or a migration.
bin/magento ok:urlrewrites:regenerate
Maintained fork of onestic/magento2-regenerate-url-rewrites (originally by Oleg Koval),
verified on Magento 2.4.9 / PHP 8.4.
What changed vs upstream
execute(): intfix — the console command'sexecute()had no: intreturn type, which Symfony Console 7.4 (shipped with Magento 2.4.9) requires. Without itbin/magentothrew a fatal error and the whole CLI was unusable. Added the return type and properCli::RETURN_SUCCESS/RETURN_FAILUREcodes.- Added
requireto composer.json (php8.1–8.5,magento/framework >=103.0.4 <104); removedminimum-stability: alpha.
Install
composer require sisl-source/magento2-regenerate-url-rewrites bin/magento setup:upgrade
License
OSL-3.0 / AFL-3.0 (upstream). Maintained by SISL — one of a set of revived, free, open-source Magento modules kept working on the latest releases.
Maintained by SISL
Maintained fork by SISL — Magento 2 development and modules. More self-hosted plugins: SISL Marketplace.