https://github.com/markshust/magento2-module-hierarchycomplexidcompatibility
The Hierarchy Complex ID Compatibility module makes the hierarchy compatible with long URL identifiers containing subpaths.
https://github.com/markshust/magento2-module-hierarchycomplexidcompatibility
Last synced: about 1 year ago
JSON representation
The Hierarchy Complex ID Compatibility module makes the hierarchy compatible with long URL identifiers containing subpaths.
- Host: GitHub
- URL: https://github.com/markshust/magento2-module-hierarchycomplexidcompatibility
- Owner: markshust
- License: mit
- Created: 2019-11-07T17:08:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-13T07:45:58.000Z (almost 6 years ago)
- Last Synced: 2025-03-25T09:49:13.818Z (about 1 year ago)
- Language: PHP
- Size: 267 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
MarkShust_HierarchyComplexIdCompatibility
The Hierarchy Complex ID Compatibility module makes the hierarchy compatible with long URL identifiers containing subpaths.
## Table of contents
- [Summary](#summary)
- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)
## 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

### After

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

## License
[MIT](https://opensource.org/licenses/MIT)