Magento 2 product URL conflicts: verify CustomUrlRewrite suffixes

2 min read

Silver 3D illustration with gold details and accents: teal and coral — CustomUrlRewrite - Automatic URL Conflict Resolution

Two products can receive the same proposed URL key without being allowed to share an address. CustomUrlRewrite checks occupied paths during saving and searches numeric suffixes. Reproduce one concrete collision before considering wider catalog changes.

Define the data and scope

Before changing anything, record the store view, language, theme and information source. Prepare one control example and its initial state. For other views, establish which settings should be inherited and which are deliberately overridden so the comparison uses the same context.

Prepare the configuration

The verified package is kowal/module-customurlrewrite, but its registered module name is Kowal_CustomUrlChecker. Do not automatically use the commercial name in an enable command; check the delivered version. Prepare control products, store view, URL key and existing rewrite. The checked implementation searches paths ending in .html, making that suffix an important test condition.

Start with test data and an explicitly selected record scope. Change one setting at a time. Keep the configuration, input identifiers and output so another administrator can reproduce the operation without guessing its parameters or relying on a screenshot alone.

Run a concrete scenario

On a store copy occupy produkt.html and save a product with the colliding key. The mechanism checks produkt-1.html, produkt-2.html and subsequent candidates. Record the selected url_key, resulting rewrite and response at the new address. Compare SKU and view to confirm the correct product is served. Also save a product without a collision to check the unaffected path.

Compare actual records before and after the operation. Include one qualifying case and another intended to remain unchanged. On failure record the stage, identifier and message. Do not repeat a bulk operation merely because a visible completion confirmation is missing.

Check boundaries and accept the implementation

A suffix resolves a save-time collision; it is not an automatic canonical strategy or a promise to redirect every previous URL. A different URL ending requires checking this implementation separately. Search time depends on catalog size and occupied candidates. Uniqueness alone guarantees no Google ranking. Review published-address changes against the store’s existing redirect policy.

For acceptance retain settings, record scope, expected and observed results and the test date. Compare data again after deployment. When the module uses a schedule or queue, inspect actual execution and logs rather than treating a submitted-job confirmation as proof of completion.

Acceptance example

Example: the -1 candidate already belongs to another SKU. Acceptance should confirm selection of the next available key, the correct product destination and that the first product’s existing address remains intact.

Check features and configuration in the offering for CustomUrlRewrite - Automatic URL Conflict Resolution.

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)