customgento/module-default-store-code-remover-m2 1.0.0

This module removes the store code from the url on the default store

Type

magento2-module

License

OSL-3.0

Requires
Requires (dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

CustomGento_DefaultStoreCodeRemover

Magento 2 module for hiding the store code in the default store.

Description

This extension hides the Default Store Code from the URL. The module is in effect only when web/url/use_store is enabled

Installation

  • composer require customgento/module-default-store-code-remover-m2
  • bin/magento module:enable CustomGento_DefaultStoreCodeRemover
  • bin/magento setup:upgrade
  • bin/magento cache:flush
  • bin/magento setup:di:compile

Example

When the store codes in the url are disabled, the URL of the stores looks like this: https://website.com/.

When the store codes in the url are enabled, the URL of the stores looks like this: https://website.com/store_code/.

When this extension is installed and enabled, and the store codes are enabled to be shown in the url under Store > Configuration > General > Web >Add Store Code, the module will not show the store code for the default store but will show it for any other store.

So, for the default store the url will be https://website.com/ while for all other store, the URL will be : https://website.com/store_code

Copyright

© 2020 CustomGento GmbH