Crosslinks, Auto Internal Linking for Magento 2
Rule-based internal linking for Magento 2. Map a keyword to a URL, a product SKU or a category ID, and it becomes a link in matching product, category and CMS text, with a default cap of 5 links per page.
- Free
- Themes listed: Hyvä + Luma
composer require mage2kishan/module-crosslinks
- Package requirementsRead the source documentation
- Developer profileView Upwork profile
- Themes listedHyvä + Luma
- PHP versions listed8.1, 8.2, 8.3, 8.4
- Installation questionsDiscuss your store setup
What it does for your store
The main features, as listed in the module documentation.
-
Keyword rules
Map a keyword or phrase to a custom URL, a product by SKU or a category by ID.
-
Where links appear
Product descriptions and short descriptions, category descriptions, CMS pages and CMS blocks.
-
Link limits
A per-rule Max Replacements cap and a Max Links per Page cap that defaults to 5.
-
Safe output
Skips headings, existing links and scripts, avoids self-links and rejects unsafe URL schemes.
-
Store and schedule
Scope rules to a store view, set priority, nofollow and title, and optional active dates.
Installation
Example commands from the Magento root. Follow the package instructions and your staging and deployment process.
- 1Check the releaseMatch Magento, PHP, theme and dependency requirements.
- 2Install on stagingReview Composer changes and follow the package instructions.
- 3Configure and verifyUse the documented settings and test the affected features.
$ composer require mage2kishan/module-crosslinks $ bin/magento setup:upgrade $ bin/magento setup:di:compile $ bin/magento setup:static-content:deploy -f $ bin/magento cache:clean
Listed requirements
These are the details supplied in this listing. Confirm the selected release supports your Magento edition, PHP and storefront.
| Magento versions listed | 2.4.6, 2.4.7, 2.4.8 |
|---|---|
| PHP versions listed | 8.1, 8.2, 8.3, 8.4 |
| Themes listed | Hyvä, Luma |
| Composer package | mage2kishan/module-crosslinks |
Documentation
Product details and setup guidance. Check the package repository for release-specific instructions.
Turn keywords into internal links without editing every description
Crosslinks adds internal links to Magento 2 content while a page renders. You create rules in an admin grid: a keyword or phrase plus a destination. When that word appears in a product description, a product short description, a category description, a CMS page or a CMS block, the module turns it into a link. The text stored in the database is not changed, so switching a rule off removes its links after the page and block caches are refreshed.
Each rule points to one of three destinations: a custom URL, a product by SKU or a category by ID. Product and category destinations are looked up in the url_rewrite table for the store view being rendered, so a rule keeps pointing at the right page when you link by SKU or category ID.
Control how many links appear
Linking too often makes copy hard to read, so the module has two limits. Max Replacements caps how many times one rule can fire, and Max Links per Page caps the total number of links added to a page. The page limit defaults to 5. The Apply Limits Per setting decides whether both limits count across the whole page request or separately for each description, CMS page and CMS block.
- Matching is case-insensitive and whole-word, so a rule for bag does not touch handbag.
- Rules with a higher priority run first and get the link budget before lower ones.
- Each rule can be limited to products, categories or CMS content, and to one store view or all of them.
- A rule that would link a page to itself is skipped.
Leave existing markup alone
Only text nodes are changed. Tag attributes, comments and HTML entities stay as they are, and the contents of headings, existing links, buttons, scripts and styles are excluded by default. You can edit that list, but links, buttons, iframes, scripts, styles, form fields and a few other tags are always excluded. A link added by one rule cannot be matched again by a later rule.
Options on each link
Every rule can add rel="nofollow" and a title attribute. Links carry the class panth-crosslink, and a small stylesheet sets a default look that your theme can override. Rules can also have Active From and Active To dates, which are checked only when time-based activation is switched on in the configuration.
Custom URLs can be relative paths or absolute URLs using http, https, mailto or tel. Other schemes such as javascript, data, vbscript and file are rejected when a rule is saved and skipped again when the page renders.
Works on Hyvä and Luma
The replacement runs in PHP through plugins on Magento's catalog output helper and the CMS filter provider, so it does not depend on the storefront theme and ships no JavaScript. The package README lists Hyvä and Luma. On Hyvä product pages a stripped excerpt of the description can be processed before the description tab; the README recommends the Content Block limit setting in that case.
Admin and caching
Rules are managed under Panth Extensions, Crosslinks, with keyword search, filters, an edit form and mass enable, disable and delete. Settings live under Stores, Configuration, Panth Extensions, Crosslinks, at default, website and store view scope. Saving, deleting, enabling or disabling rules marks the Page Cache and Blocks HTML output caches as invalidated; refresh them in Cache Management to see the change on the storefront.
The module stores rules in the panth_seo_crosslink table, the same table used by the crosslink feature of Panth Advanced SEO, so existing rules from that module keep working without a migration. It adds no cron jobs, observers, console commands, frontend routes or web API endpoints.
Requirements and install
The package requires PHP 8.1, 8.2, 8.3 or 8.4 and mage2kishan/module-core, which Composer installs. Its README lists Magento Open Source and Adobe Commerce 2.4.4 to 2.4.8. Install it with composer require mage2kishan/module-crosslinks, then run setup:upgrade, static content deploy and a cache refresh. Nothing changes on the storefront until you create at least one rule.
Crosslinks is free and open source under the MIT License. Read the package README for the full rule field list, configuration paths and developer notes, and check the changelog for the release you install.
Developer notes
These names are from release 1.1.6 of the package.
- Module
Panth_Crosslinks, namespacePanth\Crosslinks. Loads afterPanth_Core,Magento_Backend,Magento_Store,Magento_Catalog,Magento_CmsandMagento_Ui. Model\Crosslink\ReplacementService::processContent()takes the HTML, a page type (product,categoryorcms) and a store ID, and returns the linked HTML.Plugin\Crosslink\CatalogOutputPluginruns afterproductAttributeandcategoryAttributeofMagento\Catalog\Helper\Output.Plugin\Crosslink\CmsFilterPluginruns aftergetPageFilterandgetBlockFilterofMagento\Cms\Model\Template\FilterProviderand, while the module is enabled, returnsPlugin\Crosslink\CrosslinkFilterDecorator. Fluent calls such assetStoreId()return the wrapper, so chainedfilter()calls are processed too.Api\CrosslinkRepositoryInterfaceis implemented byModel\Crosslink\Repository.getById()anddeleteById()read and delete rows directly.save()inserts or updates a row from a model or an array and returns it withcrosslink_idset.reference_typevalues:url,product_skuandcategory_id.- Admin route
panth_crosslinks; save, delete and mass actions accept POST only. The save action writes to the table withResourceConnection. UI components:panth_crosslink_listingandpanth_crosslink_form. - ACL resources:
Panth_Crosslinks::manage(underPanth_Core::panth_extensions),Panth_Crosslinks::crosslinks, used by all admin controllers, andPanth_Crosslinks::config. - Table
panth_seo_crosslinkcolumns:crosslink_id,keyword,url,url_title,max_replacements,nofollow,priority,is_active,in_product,in_category,in_cms,store_id,created_at,active_from,active_to,reference_typeandreference_value. Indexed onis_activeandstore_id.
| Module Category | SEO & Indexing |
|---|---|
| Best For | All Sizes |
Changelog
-
1.1.6, 2026-10-30
- Released under the MIT License: this module is free and open-source software.
-
1.1.5, 2026-10-04
- The Store View field on the rule form now offers All Store Views, and rules saved for all store views keep that scope. Before, they opened as Default Store View and saving moved them to that store only.
- Active From and Active To dates picked in the admin are now stored as real dates. Before, saving a rule with dates stored an empty date, so a rule with time-based activation never showed again. The grid now shows these dates without a timezone shift, and Active To can no longer be earlier than Active From.
- When a save is rejected, the form keeps the values you entered and reopens as a new rule when the rule was new. Before, the fields were cleared and Nofollow switched to Yes.
- Saving, deleting, enabling or disabling rules now marks the Page Cache and Blocks HTML output caches as invalidated, so storefront pages stop showing outdated links after a cache refresh.
Questions before you install?
Send me your composer.json and I will check for conflicts first. Free. Installation is +$45, custom work is quoted first.