Search by

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

renatocason

There is no license information available for the latest version (1.3.0) of this package.

Product category url fix for Magento 2

Package info

github.com/aune-io/magento2-product-category-url-fix

Type:magento2-module

pkg:composer/aune-io/magento2-product-category-url-fix

Statistics

Installs: 5 881

Dependents: 0

Suggesters: 0

Stars: 16

Open Issues: 0

1.3.0 2026-11-18 14:38 UTC

This package is auto-updated.

Last update: 2026-11-18 14:41:44 UTC


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.

Tests Latest Stable Version Latest Unstable Version Total Downloads License

System requirements

This extension supports the following versions:

  • Magento Open Source / Adobe Commerce 2.4.6, 2.4.7, 2.4.8 and 2.4.9
  • PHP 8.2, 8.3, 8.4 and 8.5 (as far as each Magento release supports them)

Older Magento (2.2, 2.3, 2.4.0 - 2.4.5) and PHP (7.x, 8.0, 8.1) versions are no longer supported. The last release supporting them is the one tagged before this change; use that if you are still on those versions.

Installation

  1. Require the module via Composer
$ composer require aune-io/magento2-product-category-url-fix
  1. Enable the module
$ bin/magento module:enable Aune_ProductCategoryUrlFix
$ bin/magento setup:upgrade
  1. Login to the admin
  2. Go to Stores > Configuration > Catalog > Catalog > Search Engine Optimization
  3. 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