PHPackages                             etechflow/module-canonical-hreflang - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. etechflow/module-canonical-hreflang

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

etechflow/module-canonical-hreflang
===================================

Canonical URLs + hreflang tags for Magento 2: de-duplicates filtered/paginated/multi-category URLs and serves the right store view per locale. Part of the Etechflow SEO Suite.

1.2.1(3w ago)0111proprietaryPHPPHP ~8.1.0||~8.2.0||~8.3.0||~8.4.0

Since Jun 5Pushed 3w agoCompare

[ Source](https://github.com/etechflow/Etech-Canonical-Hreflang)[ Packagist](https://packagist.org/packages/etechflow/module-canonical-hreflang)[ RSS](/packages/etechflow-module-canonical-hreflang/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (8)Versions (6)Used By (1)

Etechflow\_CanonicalHreflang
============================

[](#etechflow_canonicalhreflang)

**Canonical URLs + hreflang tags** for Magento 2 — de-duplicates the URL variants that leak SEO equity and serves the right store view per locale. Part of the **Etechflow SEO Suite**.

Why
---

[](#why)

Magento generates the same content under many URLs — a product reachable under several category paths, category pages with `?colour=red&price=10-20`, `?p=2` pagination, and tracking-param variants. Without a clean canonical, Google splits ranking signals across all of them. This module emits one authoritative canonical per page, and for multi-store catalogues, hreflang links so each locale's customers land on the right store view.

Features
--------

[](#features)

**Canonical**

- Product / category / CMS pages (each toggleable).
- **Category-free product canonical** — a product in 5 categories still has one canonical.
- **Strips query parameters** — `?filter`, `?sort`, `?utm_*` all canonicalise to the clean URL.
- **Pagination control** — self-referencing (`?p=2` canonicalises to itself, Google-recommended) or consolidate-to-page-1.
- **De-dupes** — removes any existing canonical (e.g. Magento core's) so you never emit two.

**Hreflang**

- `rel="alternate"` links across every active store view.
- Each store's code auto-derived from its **Locale** (`en_GB` → `en-gb`), or overridden per store (`1:en-gb`).
- Optional `x-default`.

How it works
------------

[](#how-it-works)

A single plugin on `Magento\Framework\View\Result\Page::renderResult` resolves the current entity and adds the `` tags via **PageConfig remote assets** — so they render in any theme, including Hyvä, with no template changes. `Service\CanonicalResolver` and `Service\HreflangResolver` compute the URLs.

Install
-------

[](#install)

```
composer require etechflow/module-canonical-hreflang
bin/magento module:enable Etechflow_CanonicalHreflang
bin/magento setup:upgrade
bin/magento setup:di:compile     # production
```

Configure
---------

[](#configure)

**Stores → Configuration → Etechflow → Canonical &amp; Hreflang**: master *Enable*, then the canonical toggles (product/category/CMS, strip-query, pagination mode) and hreflang (enable, x-default store, per-store overrides).

> Tip: turn off Magento's own canonical (Catalog → Catalog → Search Engine Optimization) — this module dedupes it anyway, but disabling avoids the wasted work.

License
-------

[](#license)

Proprietary — © eTechFlow.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance95

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Total

5

Last Release

27d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/72d596daffc1cbadfe809b006d2fc518e5ca32cdccca9485410d282898d07ba1?d=identicon)[etechflow0](/maintainers/etechflow0)

---

Top Contributors

[![ayeshanisar786](https://avatars.githubusercontent.com/u/106437953?v=4)](https://github.com/ayeshanisar786 "ayeshanisar786 (3 commits)")

### Embed Badge

![Health badge](/badges/etechflow-module-canonical-hreflang/health.svg)

```
[![Health](https://phpackages.com/badges/etechflow-module-canonical-hreflang/health.svg)](https://phpackages.com/packages/etechflow-module-canonical-hreflang)
```

###  Alternatives

[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68357.9k](/packages/run-as-root-magento2-prometheus-exporter)[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[angeo/module-llms-txt

Magento 2 module for AI Engine Optimization (AEO). Generates spec-compliant llms.txt and llms-full.txt per llmstxt.org standard, plus streaming JSONL for vector indexing. Multi-store, multi-website, CLI, cron, async admin UI, Page Builder-aware sanitization, customer-group pricing, atomic writes, ETag/Cache-Control, .md mirrors.

111.1k](/packages/angeo-module-llms-txt)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1011.8k26](/packages/loki-magento2-components)[customgento/module-cookiebot-m2

This Magento 2 module integrates Cookiebot into your store.

2471.6k](/packages/customgento-module-cookiebot-m2)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

1310.9k2](/packages/opengento-module-category-import-export)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
