# etechflow/module-seo-layered-nav

> SEO-friendly layered navigation: human-readable filter URLs (slug<->option-id) for Magento Open Source / Adobe Commerce, theme-agnostic (Hyva/Luma).

`composer require etechflow/module-seo-layered-nav`

Canonical URL: https://packagento.com/etechflow/module-seo-layered-nav

## At a glance

- **Vendor**: etechflow (https://packagento.com/etechflow.md)
- **Latest version**: 1.2.1 — released 2026-06-22
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/etechflow/module-seo-layered-nav and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require etechflow/module-seo-layered-nav:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

SEO-friendly layered navigation: human-readable filter URLs (slug<->option-id) for Magento Open Source / Adobe Commerce, theme-agnostic (Hyva/Luma).

## README


**SEO-friendly layered navigation** for Magento 2 — turns ugly filter URLs into human-readable slugs and manages canonical/robots/sitemap for filter pages. Theme-agnostic (Hyvä + Luma). Part of the **Etechflow SEO Suite**.

### The problem

Magento's layered navigation produces `?manufacturer=2069&blade=2071` — opaque, unindexable, and a duplicate-content minefield. This module makes those URLs readable, then controls exactly which filter combinations Google indexes.

### Features

**Phase 1 — Readable filter URLs** *(toggle: `general/enabled`)*
- `?manufacturer=yale` instead of `?manufacturer=2069`, fully two-way (slug ↔ option-id).
- Works on dropdown filters, swatches, and inbound requests; outbound links in the layer are rewritten automatically.
- Optional multi-select (disjunctive facets — click to add a value).
- Deterministic slugs (`SlugGenerator`): `"Premier 2000+"` → `premier-2000`, stable across stores and re-runs.
- Aliases stored in `etechflow_seo_filter_alias`. Rebuild from the admin — **Marketing → SEO Filter URLs → "Rebuild SEO URLs"** (one click, with an optional store-scope picker) — or via `bin/magento etechflow:seo-nav:generate-aliases`. Both share one code path (`Model\AliasRebuilder`). Run it after imports or attribute-option changes.

**Phase 2 — Canonical & robots for filter pages** *(toggle: `seo/manage_meta`, gated separately)*
- Single indexable filter → self-canonical + `INDEX,FOLLOW`.
- Multiple filters / price / non-whitelisted → base-category canonical + `NOINDEX,FOLLOW`.
- Configurable indexable-attribute whitelist; optional `NOINDEX` on pagination.
- Head-block based — renders in any theme.

**Phase 2.5 — Sitemap discovery** *(toggle: `seo/sitemap_filter_pages`)*
- Emits indexable single-filter landing pages into the XML sitemap (whitelist-gated, products-only, capped).

Everything is **OFF by default** — storefront URLs are untouched until a merchant opts in *and* aliases have been generated.

### Install

```bash
composer require etechflow/module-seo-layered-nav
bin/magento module:enable ETechFlow_SeoLayeredNav
bin/magento setup:upgrade
bin/magento setup:di:compile           # production
bin/magento etechflow:seo-nav:generate-aliases
```

### Configure

**Stores → Configuration → eTechFlow → SEO Layered Navigation**: enable, choose URL format, multi-select, and (separately) the Phase 2 canonical/robots + sitemap options.

> On a store already running another SEO-filter/canonical extension (e.g. Mirasvit_SeoFilter), enable Phase 1 only and leave Phase 2/2.5 off to avoid duplicate canonicals.

### Compatibility

Magento Open Source / Adobe Commerce 2.4.x · PHP ≥ 8.1 · Hyvä + Luma · query-style URLs (`?manufacturer=yale`). Path-style (`/category/manufacturer/yale`) is planned for a future major version.

### License

Proprietary — © eTechFlow.

## Changelog


All notable changes to this module are documented here.

### v1.0.0 — 2026-06-05

Initial public release.

SEO-friendly layered navigation. Readable filter URLs (slug<->option-id) + canonical/robots/sitemap control for filter pages. Hyva/Luma.

## Recent Versions

| Version | Released |
|---|---|
| 1.2.1 | 2026-06-22 |
| 1.1.4 | 2026-06-15 |
| 1.1.3 | 2026-06-15 |
| 1.1.2 | 2026-06-15 |
| 1.1.1 | 2026-06-15 |
| 1.1.0 | 2026-06-12 |
| 1.0.0 | 2026-06-05 |

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | >=103.0 |
| magento/module-backend | >=102.0 |
| magento/module-catalog | >=104.0 |
| magento/module-catalog-search | >=102.0 |
| magento/module-eav | >=102.0 |
| magento/module-store | >=101.0 |
| php | ~8.1.0\|\|~8.2.0\|\|~8.3.0\|\|~8.4.0 |

## Quality

Latest release (1.2.1) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | not tested |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 156 | 4 errors, 152 warnings (ruleset: Magento2) — 77 auto-fixable with phpcbf |
| PHPMD | Warning | 39 | 39 rule violations (CyclomaticComplexity:9, NPathComplexity:9, UnusedFormalParameter:6, EmptyCatchBlock:6, MissingImport:4) |
| Cpd | Warning | 1 | 1 duplicated chunk spanning 42 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 7 | valid; 7 advisory notes (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 37 | 37 | – | – |
| 2.4.8 | – | 37 | 37 | – |
| 2.4.9 | – | – | 37 | N/A |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["etechflow/module-seo-layered-nav"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

etechflow is a Magento 2 vendor on Packagento. See https://packagento.com/etechflow.md for their full catalogue.

