Simple Redirects v1.1.0¶
Author: Nickolas Burr
Table of Contents
If you would like to receive updates (like this one) by email, please consider subscribing to our quarterly newsletter. It is low volume, and includes details about upcoming releases, product updates, EOL announcements, and other related topics. You can subscribe here.
We’ve released Simple Redirects v1.1.0 and it contains several important updates and new features, including Composite Rules and admin UI improvements.
Starting in v1.1.0, rules can be linked together to create composite rules. This is important because it provides the ability to match several conditions of requests and respond more appropriately, as compared to only matching a single condition of requests. Composite rules are especially useful when migrating to Magento from other platforms, like Shopify or BigCommerce, where the structuring of URLs is substantially different.
Below is an example of three (3) atomic (single-purpose) rules that are linked together to form a composite rule. Composite rules take the form of a directed tree and behave in an upward, bubbling fashion, meaning rules are validated child => parent, but not parent => child. The reason for this is because dependency metadata is stored on the child rule, not the parent rule.
For complete changelog, see CHANGELOG.txt.
Add priority row to adminhtml simpleredirects_rule_view template
Add basic rule chaining support in
Ruleselect source model
parent_idduring save in adminhtml rule createPost, editPost controllers
parent_idform elements in simpleredirects_rule_form.xml
Include rule name in adminhtml rule view details template
parent_idcolumn UI component class
Targetcolumn UI component class
Add Rule view model
Add parent, target rows to simpleredirects_rule_view template
CancelButtonUI component class
Add cancel button to simpleredirects_rule_form.xml
Add adminhtml rule back button block
Add back button block in adminhtml simpleredirects_rule_view.xml
DeleteButtonUI component class
Add adminhtml simpleredirects_rule_deletePost controller
Add adminhtml rule delete.js
Add delete button in adminhtml simpleredirects_rule_form.xml
Update default value in
RuleInterface::getTarget()nullable return type
Check if rule has target value in
Make target column nullable in db_schema.xml
Update button CSS class in adminhtml rule edit button block
<actionsColumn>config in simpleredirects_rule_grid.xml
RuleInterface::setParentId()parameter as nullable type