Skip to content

experius/Magento2-Module-Multiple-Website-Store-Code-Url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multiple website store code url

This module enabled you to use the same store_code multiple times for different websites in the url by removing the website_code from the store_code before adding it to the url. So "example.com/website_en/", will become "example.com/en/".

The module has configuration to enable/disable it in the web/url section.

Important: the store code should include the website code otherwise it won't do anything.

Configuration

In order for direct links to work, you must set base urls on website level.

In "Stores -> Configuration -> General -> Web -> Base Urls", "web/unsecure/base_url" or "web/secure/base_url" or both must be filled. The values must be present at website level.

Changelog:

  • 2.0.0 added compatibility for magento 2.3.*.
  • 2.0.1 fixed issues with not being able to navigate on a not default store + fixed storeswitcher url redirect