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

Default Store Code Remover for Magento 2 hides the store code in the default store from the URL.

Fund package maintenance!
customgento

Installs: 25 184

Dependents: 0

Suggesters: 0

Security: 0

Stars: 25

Watchers: 5

Forks: 5

Open Issues: 0

Type:magento2-module

v1.0.5 2024-06-03 11:26 UTC

This package is auto-updated.

Last update: 2024-11-05 08:38:28 UTC


README

Default Store Code Remover for Magento 2 hides the store code in the default store from the URL. The module is in effect only when web/url/use_store is enabled and is meant to be used for multistore setups, where the default shop should not contain any store code, whereas all other stores should.

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

License

OSL - Open Software Licence 3.0

Copyright

© 2021 - present CustomGento GmbH