VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Ventsi Genchev on July 31, 2017, 08:29:02 AM

Title: Wrong redirection after login - Joomla 3.7.4 multilingual site
Post by: Ventsi Genchev on July 31, 2017, 08:29:02 AM
Joomla 3.7.4 (The problem may also exist with Joomla 3.7.3)
Virutemart 3.2.2/3.2.3/3.2.4
Multilingual site

Issue:
When a user is in a category or product page, he does not stay on the same page after logging in.
It does not matter the current state of the language or site setting.

Temporary solution to the problem:
Plugin System - Language Filter - Toggle the "Automatic Language Change" option to No
(This excludes the ability for the site to automatically change the language according to the user's profile once it is identified on the site. But it will not redirect the user to another page after login.)
Title: Re: Wrong redirection after login - Joomla 3.7.4 multilingual site
Post by: Milbo on August 01, 2017, 08:16:09 AM
The module is by joomla, so I think that is a joomla problem
Title: Re: Wrong redirection after login - Joomla 3.7.4 multilingual site
Post by: Ventsi Genchev on August 01, 2017, 08:21:29 AM
I also share your opinion.
I just make it clear to save somebody lost hours in search of the problem.
Title: Re: Wrong redirection after login - Joomla 3.7.4 multilingual site
Post by: Ventsi Genchev on August 07, 2017, 11:15:31 AM
To be more accurate:
There is no problem with Joomla's menus. If everything is properly associated with menus, there is no problem.
Since Virtuemart is unable to switch languages between categories (if each category is not added to the menu and associated) and products, Joomla can not establish an association.
So login to the site behaves the same way as switching languages - transfers the user to the first associated category.

So I wrote that the decision is temporary. Perhaps one day there will be no problem when switching languages between categories and products.
Title: Re: Wrong redirection after login - Joomla 3.7.4 multilingual site
Post by: Milbo on August 07, 2017, 11:33:10 AM
Quote from: Venci Gentchev on August 07, 2017, 11:15:31 AM
Since Virtuemart is unable to switch languages between categories (if each category is not added to the menu and associated)

That is not really true. The point is, that we dont need associations. Without SEF it works wonderful easy and good. The problem here is the SEF and to create a link, if there is no joomla menu for it.
Title: Re: Wrong redirection after login - Joomla 3.7.4 multilingual site
Post by: Ventsi Genchev on August 07, 2017, 11:35:41 AM
I agree, but without SEF does not look good.  :)