markshust/magento2-module-hierarchycomplexidcompatibility

The Hierarchy Complex ID Compatibility module makes the hierarchy compatible with long URL identifiers containing subpaths.

Fund package maintenance!
markshust

Installs: 1 260

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 3

Forks: 1

Open Issues: 0

Type:magento2-module

1.0.0 2019-11-07 17:07 UTC

This package is auto-updated.

Last update: 2024-04-13 16:01:56 UTC


README

The Hierarchy Complex ID Compatibility module makes the hierarchy compatible with long URL identifiers containing subpaths.

Supported Magento Versions Latest Stable Version Composer Downloads Maintained - Yes 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667

Table of contents

Summary

The hierarchy functionality of Magento Commerce prepends the URL identifier of parent nodes to children. This is ok for CMS pages with standard, simple URLs.

However, if the URL contains subpaths the hierarchy request paths will be setup incorrectly, leading to undesired route locations and breadcrumb links.

This module changes the functionality when saving the hierarchy, making these longer URL strings compatibile.

Before

Before request_url table has been updated

After

After request_url table has been updated

Requirements

This module requires the hierarchy functionality which is only available in Magento Commerce.

Installation

composer require markshust/magento2-module-hierarchycomplexidcompatibility
bin/magento module:enable MarkShust_HierarchyComplexIdCompatibility
bin/magento setup:upgrade

Usage

This module has no configuration. Just install, then go to Admin > Content > Elements > Hierarchy, and re-save the hierarchy. The entire tree will be re-saved with the new request URLs.

In the event there are duplicate URLs in the tree, you will be notified. The hierarchy must not ever contain duplicate values for the request_path.

Error

License

MIT