vladflonta/magento2-store-switcher-url-fix

修复用于切换到具有URL重写规则的具体店铺视图页面的URL。

1.0.0 2018-03-25 23:36 UTC

This package is auto-updated.

Last update: 2024-09-10 22:49:53 UTC


README

修复用于切换到具有URL重写规则的具体店铺视图页面的URL。问题通常出现在具有超过3个段且段数为偶数的URL上 - 如果存在店铺代码段,则不包括该段(例如,http://example.com/en/shop/with/multilevel/categories.html 在切换到不同店铺视图时会抛出404错误)。

安装步骤

  1. 通过composer获取模块

    composer require "vladflonta/magento2-store-switcher-url-fix":"~1.0"
    

    或通过git

    git clone https://github.com/vladflonta/magento2-store-switcher-url-fix app/code/VladFlonta/StoreSwitcherUrlFix
    
  2. 启用模块

bin/magento module:enable VladFlonta_StoreSwitcherUrlFix
bin/magento setup:upgrade

许可证

本项目采用开源软件许可证(OSL 3.0)进行许可。