aune-io / magento2-product-category-url-fix
Product category url fix for Magento 2
Installs: 5 673
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 3
Forks: 6
Open Issues: 0
Type:magento2-module
Requires
- php: ~7.1.0|~7.2.0|~7.3.0|~7.4.0|~8.1.0
- magento/framework: 101.0.*|102.0.*|103.0.*
- magento/module-catalog-url-rewrite: 100.2.*|100.3.*|100.4.*
Requires (Dev)
- php-coveralls/php-coveralls: ~2.1.0
- phpmd/phpmd: @stable
- phpunit/phpunit: ~6.5.13
- squizlabs/php_codesniffer: 3.3.1
README
Fix Magento 2 core behaviour on product category url generation. By default Magento 2 generates product urls containing categories even if Use Categories Path for Product URLs is turned off. This modules prevents the generation of those urls if the aforementioned setting is set to No.
System requirements
This extension supports the following versions of Magento:
- Community Edition (CE) versions 2.1.x, 2.2.x, 2.3.x and 2.4.x
Installation
- Require the module via Composer
$ composer require aune-io/magento2-product-category-url-fix
- Enable the module
$ bin/magento module:enable Aune_ProductCategoryUrlFix $ bin/magento setup:upgrade
- Login to the admin
- Go to Stores > Configuration > Catalog > Catalog > Search Engine Optimization
- Set Use Categories Path for Product URLs to No, or to use the default value
Product category urls won't be generated for new products, plus old urls will be deleted for a product when it is saved after a change associated categories or websites.
Authors, contributors and maintainers
Author:
License
Licensed under the Open Software License version 3.0