Skip to content

Since MagentoCE2.1.11, after swithing store view, ___store=xx is added to url. Breaks 'back' functionality. #14294

Closed
@bobemoe

Description

@bobemoe

Preconditions

PHP 7.0.27-1-dotdeb+8.1 (cli) ( NTS )
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.27-1-dotdeb+8.1, Copyright (c) 1999-2017, by Zend Technologies

nginx version: nginx/1.12.2

Linux 3.16.0-5-amd64 #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) x86_64 GNU/Linux

mysql Ver 15.1 Distrib 10.0.32-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

Steps to reproduce

  1. Clean install of magento2.1.12 using composer.
  2. Admin->Stores->Add Store View (name: test, code: test, enabled)
  3. Fontend use store switcher to change store view to 'test' store. Notice that ?___store=test is added to the URL.
  4. Navigate to another page (e.g. terms)
  5. Click 'Back' in the browser

Expected result

The previous page is displayed

Actual result

Firefox complains "Expired Document"

Notes

I've tested this with the different version of magento. It seems that before 2.1.11 the ?___store= was not added to the URL and switching was handled, i guess, purely by POST/session/cookie.
Since 2.1.11 the ?___store= is added upon switching and going back to any page that has that in the URL causes this issue.

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.1.xThe issue has been reproduced on latest 2.1 releaseReproduced 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