PHPackages                             opengento/module-store-path-url - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. opengento/module-store-path-url

ActiveMagento2-module[Localization &amp; i18n](/categories/localization)

opengento/module-store-path-url
===============================

This module updates the store code path in url with the country code or a custom value.

4.1.9(9mo ago)82.6k↑460%2[1 issues](https://github.com/opengento/magento2-store-path-url/issues)MITPHPPHP ^8.1

Since Mar 15Pushed 9mo ago6 watchersCompare

[ Source](https://github.com/opengento/magento2-store-path-url)[ Packagist](https://packagist.org/packages/opengento/module-store-path-url)[ Docs](https://github.com/opengento/magento2-store-path-url)[ Fund](https://www.helloasso.com/associations/opengento/formulaires/1)[ RSS](/packages/opengento-module-store-path-url/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (8)Versions (29)Used By (0)

Store Path Url Module for Magento 2
===================================

[](#store-path-url-module-for-magento-2)

[![Latest Stable Version](https://camo.githubusercontent.com/9524462298a743481cb994704fe638e54a52e5684565fa6e71145478eaceba09/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f70656e67656e746f2f6d6f64756c652d73746f72652d706174682d75726c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/opengento/module-store-path-url)[![License: MIT](https://camo.githubusercontent.com/bd7e6c8948ef0a1fa56cb8bc8bf4ead4c0245375589239fd81848415120abe08/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6f70656e67656e746f2f6d6167656e746f322d73746f72652d706174682d75726c2e7376673f7374796c653d666c61742d737175617265)](./LICENSE)[![Packagist](https://camo.githubusercontent.com/ad554f7a2914b9be9548ad1e4daa9bde48df94179790bc8246a752d57a98dbd6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f70656e67656e746f2f6d6f64756c652d73746f72652d706174682d75726c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/opengento/module-store-path-url/stats)[![Packagist](https://camo.githubusercontent.com/b84da3a7efb048bd3f03fd8f87a7d9d45d2689a835eb5808d5889842438ab1b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6f70656e67656e746f2f6d6f64756c652d73746f72652d706174682d75726c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/opengento/module-store-path-url/stats)

This module allows to override the store code in url with another path value.

- [Setup](#setup)
    - [Composer installation](#composer-installation)
    - [Setup the module](#setup-the-module)
- [Features](#features)
- [Settings](#settings)
- [Documentation](#documentation)
- [Support](#support)
- [Authors](#authors)
- [License](#license)

Setup
-----

[](#setup)

Magento 2 Open Source or Commerce edition is required.

### Composer installation

[](#composer-installation)

Run the following composer command:

```
composer require opengento/module-store-path-url

```

### Setup the module

[](#setup-the-module)

Run the following magento command:

```
bin/magento setup:upgrade

```

**If you are in production mode, do not forget to recompile and redeploy the static resources.**

Features
--------

[](#features)

The module allows to replace the store code in url with the following options:

- Country Code, e.g: be
- Language Code, e.g: fr
- Locale Code (separated with a hyphen), e.g: fr-be
- Locale Code (separated with an underscore), e.g: fr\_be
- Custom (you can setup the path of your choice), e.g: emea

This module also allows you to remove the store path in the url for websites with a single store view. This may be useful for stores with dedicated domains. This setting is automatically enabled if you choose to use the custom mapper. However, if a single store exists for a website, and a path is setup within the mapper, the path is not unset, meaning that the path configured in the mapper is used.

Besides that, this module makes the usage of the MAGE\_RUN\_TYPE and MAGE\_RUN\_CODE variables optionals. Magento is going to be able to resolve the correct store based on its base web URL. This setting can be disabled, see "Use Base Url Resolver".

Settings
--------

[](#settings)

The configuration for this module is available in `Stores > Configuration > Web > Url`.

Documentation
-------------

[](#documentation)

In order to use this module, you must enable the following setting: "Add Store Code to Urls" (`web/url/use_store`).
A new field is added in the configuration: "Store Path Url" and "Custom Path Mapper" if the "custom" value is selected.
The store path config are:

- `web/url/store_path_url`
- `web/url/custom_path_mapper`
- `unset_single_store_path`
- `base_url_resolver`

Support
-------

[](#support)

Raise a new [request](https://github.com/opengento/magento2-store-path-url/issues) to the issue tracker.

Authors
-------

[](#authors)

- **Opengento Community** - *Lead* - [![Twitter Follow](https://camo.githubusercontent.com/f582f22fdefea808310d5426ff86d748569ab584a65c28c30eb34b72a73ba802/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f6f70656e67656e746f2e7376673f7374796c653d736f6369616c)](https://twitter.com/opengento)
- **Thomas Klein** - *Maintainer* - [![GitHub followers](https://camo.githubusercontent.com/e0e283f9de9d23a7bfeac3e6088a3a3a6844c123e1861f866242cd80e3361088/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f6c6c6f776572732f74686f6d61732d6b6c312e7376673f7374796c653d736f6369616c)](https://github.com/thomas-kl1)
- **Contributors** - *Contributor* - [![GitHub contributors](https://camo.githubusercontent.com/763c065a3264c4c2271ac1b3c24e25440bf6448f6c6d301c2036639f505add2b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f6f70656e67656e746f2f6d6167656e746f322d73746f72652d706174682d75726c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/opengento/magento2-store-path-url/graphs/contributors)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](./LICENSE) details.

***That's all folks!***

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance54

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 97.9% 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 ~20 days

Recently: every ~57 days

Total

28

Last Release

280d ago

Major Versions

1.0.3 → 2.0.02024-03-18

2.0.4 → 3.0.02024-03-22

3.0.2 → 4.0.02024-03-29

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/95669?v=4)[Thom](/maintainers/thomasklein)[@thomasklein](https://github.com/thomasklein)

---

Top Contributors

[![thomas-kl1](https://avatars.githubusercontent.com/u/20971693?v=4)](https://github.com/thomas-kl1 "thomas-kl1 (46 commits)")[![Nolwennig-Jeulin](https://avatars.githubusercontent.com/u/196114626?v=4)](https://github.com/Nolwennig-Jeulin "Nolwennig-Jeulin (1 commits)")

---

Tags

adobe-commerceadobe-commerce-extensionadobecommercebaseurlbaseurl-domainmagentomagento-2magento-extensionmagento-modulemagento2magento2-extensionmagento2-extension-freemagento2-modulestorefronturlurlphpmagentopathwebsitelocaleswitcherstorecountrymagento2

### Embed Badge

![Health badge](/badges/opengento-module-store-path-url/health.svg)

```
[![Health](https://phpackages.com/badges/opengento-module-store-path-url/health.svg)](https://phpackages.com/packages/opengento-module-store-path-url)
```

###  Alternatives

[loki/magento2-components

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

1011.8k26](/packages/loki-magento2-components)[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)[buckaroo/magento2

Buckaroo Magento 2 extension

32420.3k8](/packages/buckaroo-magento2)[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.4M1](/packages/fastly-magento2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50398.5k20](/packages/dotdigital-dotdigital-magento2-extension)

PHPackages © 2026

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