bitExpert/magento2-force-login

Language switch problem

thelogh opened this issue · 7 comments

Preconditions

Server Ubuntu 18.04 php PHP 7.2.19-0ubuntu0.18.04.1

Magento Version : CE 2.3.2

Force Login Module Version :3.2.0

Third party modules :

Steps to reproduce

It is not possible to change the language on a Magento 2.3.2 installation with two store views, enabling the plugin and putting the url /stores/store/redirect in the white list. Selecting the language change on the login page always returns to the login page without changing the language.I make the debug url entered is found correctly, but then in redirect goes wrong.

Expected result

1.Change language in the store

Actual result

  1. [Screenshot, logs]

Thank you for the bug report. Any chance you could provide a fix for this issue?

can you please try also putting "/stores/store/switch" to the whitelist?

@philippsander will this fix the problem mentioned or is this "just" an additional wish? Mind providing a PR, please? Thanks :)

no this is not additional wish ;-)

It might be a solution to the problem. Switching the language uses 2 routes.

@philippsander would you be able to prepare a PR? A bit too much other stuff on my plate these days...

@thelogh can you verify applying this will fix your problem? then we can close the issue

Then with the last update Merge pull request #165 I saw that it adds statically using Static /stores/store/switch and /stores/store/redirect NOT working.
But putting /stores/store/switch and /stores/store/redirect in RegEx (All), works all fine.