Skip to content

Store switcher redirects to homepage for multistore setup with different domains #26384

Closed
@DanieliMi

Description

@DanieliMi

Preconditions (*)

  1. 2.3.3
  2. More than one store view
  3. Separate domain for the store views (default -> mage.local, second store view -> test.mage.local)
    Apache vhost:
<VirtualHost *:80>
   ServerName          mage.local
   DocumentRoot        /var/www/html/magento2/pub/
</VirtualHost>

<VirtualHost *:80>
   ServerName          test.mage.local
   DocumentRoot        /var/www/html/magento2/pub/
   SetEnv MAGE_RUN_CODE "test"
   SetEnv MAGE_RUN_TYPE "store"
</VirtualHost>
  1. Setup base urls for both store views in Stores > Settings > Configuration > General > Web
  2. Create a category (it can be reproduced with cms pages too)

Steps to reproduce (*)

  1. Go to mage.local
  2. Go to category
  3. Use store switch to switch to the other store

Expected result (*)

  1. Redirect to test.mage.local/category-name.html

Actual result (*)

  1. Redirect to test.mage.local/

Additional Information

Probably related to #14674 and #19714

Metadata

Metadata

Labels

Area: FrontendComponent: UrlFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReported on 2.3.3Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions