Skip to content

Store View switcher not working on front-end and it throws an error #11211

@latypatil

Description

@latypatil

If we select any store then site will go to that store and again we select another store then it throws an error because the url is wrong.

Preconditions

  1. Magento ver. 2.2.0
  2. PHP 7.0.24, mysql Ver 14.14

Steps to reproduce

  1. Create different store view from admin panel and all will appear on front-end
  2. Select any store view (No error)
  3. Again select another store view(error will be there)

Expected result

  1. It should show all store views without any error
    Ex. http://10.16.16.141/magento2.2/?___store=aus ==>this is for one of store view
    http://10.16.16.141/magento2.2/?___store=usa ==> This should be for different store view
    OR
    Base url should be the same for any store ,only store will get switch!

Actual result

  1. [Screenshot, logs]
    error

After changing the store view second time it redirect to below url :
http://10.16.16.141/magento2.2/?___store=aus?___store=usa

(URL is only for reference , it will not work)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: 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 developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions