aune-io/magento2-product-category-url-fix dev-master

Product category url fix for Magento 2

Type

magento2-module

License

None

Requires
Requires (dev)
Suggests

None

Provides

None

Conflicts

None

Replaces

None

Product Category Url Fix

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_.

Build Status Coverage Status Latest Stable Version Latest Unstable Version Total Downloads License

System requirements

This extension supports the following versions of Magento:

  • Community Edition (CE) versions 2.1.x and 2.2.x

Installation

  1. Require the module via Composer

    $ composer require aune-io/magento2-product-category-url-fix
    
  2. Enable the module

    $ bin/magento module:enable Aune_ProductCategoryUrlFix
    $ bin/magento setup:upgrade
    
  3. Login to the admin

  4. Go to Stores > Configuration > Catalog > Catalog > Search Engine Optimization
  5. 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