In Multi language site Login Redirecting to Default language

General questions regarding the use of languages in Joomla! 2.5.

Moderators: infograf768, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
nag0099
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Sat May 04, 2013 4:43 am

In Multi language site Login Redirecting to Default language

Post by nag0099 » Thu Jun 27, 2013 6:52 am

In my site I am using three languages french, spanish, english. When I login in spanish or french it is redirecting to Home page default languate english.

I have tried with separate module for each language and redirecting url for each module. But it is always redirecting to home page english.

In english it is working good and redirecting to specific url.

Please suggest the solution

Thanks

 
User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18920
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: In Multi language site Login Redirecting to Default lang

Post by infograf768 » Fri Jun 28, 2013 8:00 am

The redirection depends on the default site language of the user logging if the parameter Automatic language change in the language filter plugin is set to ON.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
nag0099
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Sat May 04, 2013 4:43 am

Re: In Multi language site Login Redirecting to Default lang

Post by nag0099 » Mon Jul 01, 2013 4:29 am

Hi infograf768,

In language filter plugin the Automatic Language Change is already in ON state. I am using login module in one template and Login form from component in another template. Given login redirection url to virtuemart account maintenance page and logout redirection url to Home page of corresponding templates. Both are working when I am in english(Default) language.

Mean while when I am login in other languages in both templates it is redirecting to default template home page with language attribute lang=en.

I have tried with different login modules and redirection urls of all languages but It is not redirecting.

Please suggest the solution.

Thanks
Nag

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18920
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: In Multi language site Login Redirecting to Default lang

Post by infograf768 » Mon Jul 01, 2013 8:49 am

The explanations above refer to the normal use of core login, not of virtuemart.
If using virtuemart, please contact them.
It is advised when using core login to let it redirect to default, i.e. Home page.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
nag0099
Joomla! Apprentice
Joomla! Apprentice
Posts: 21
Joined: Sat May 04, 2013 4:43 am

Re: In Multi language site Login Redirecting to Default lang

Post by nag0099 » Mon Jul 01, 2013 10:24 am

Hi infograf768,

I am not using virutemart login. I am using default joomla login module only even though the redirection problem occuring. Can I fix the issue without core files modification.

Please find the attached screen shots.

Thanks
Nag
You do not have the required permissions to view the files attached to this post.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18920
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: In Multi language site Login Redirecting to Default lang

Post by infograf768 » Mon Jul 01, 2013 2:45 pm

Set Language for new visitors to Site language and cookie to session.

Make sure you do NOT define a redirection for the login.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

hjelperne
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Nov 16, 2009 1:38 pm

Re: In Multi language site Login Redirecting to Default lang

Post by hjelperne » Sat Jan 04, 2014 3:04 am

Hi,

I can verify the same issue with multi-language site using Joomla 3.2.1

I have 3 menus setup -> one Language: All, one: English and one: Norwegian (as recommended)
The two language menus are associated
The language filter is enabled and set as recommended.
I create the different menu items for login -> ALL (and the associated menu items for EN and NO - for english and norwegian) type: Login..
I have not set any of the "options" (empty redirects) in the login menu items.

When default language is set to Norwegian, the English login menu item redirects to the norwegian page url (default language).
When I change default language to English - the opposite is the case: the norwegian login module redirects to the english url (default language) on login

Anything in particular one can do to make sure the "English login" stays on the english pages/content and vice versa?

Any tips are greatly appreciated!

hjelperne
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Nov 16, 2009 1:38 pm

Re: In Multi language site Login Redirecting to Default lang

Post by hjelperne » Sat Jan 04, 2014 1:03 pm

Just to verify that the issue is in Joomla core and not related to setup or any other plugins I installed a brand new Joomla 3.2.1.

For install sample data I chose: None (Required for basic native multilingual site creation)
After: "Congratulations! Joomla! is now installed." I chose "Extra steps -> Install languages" button.
In the list I chose "Norwegian Bokmal" as additional language

In the "Choose default language" I chose:
Activate the multilingual feature: Yes
Install localised content: Yes
Enable the language code plugin: Yes
and left English (United Kingdom) as default language for front-end and administrator.

After choosing "Remove installation folder" I go to the front-end of the site and switch to Norwegian language.

The login form is then displayed in Norwegian as it should.

When logging in (from Norwegian login: http://localhost/index.php/nb/) I get redirected to English content (http://localhost/index.php/en/)

Please provide any clues as to how to fix this. It would be GEATLY appreciated.

hjelperne
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Nov 16, 2009 1:38 pm

Re: In Multi language site Login Redirecting to Default lang

Post by hjelperne » Sat Jan 04, 2014 10:45 pm

Ooops!:
Sorry about that. It was as obvious as setting the "Automatic Language Change" from Yes to No in the language filter plugin.

Settings attached in screen shot:
joomla_language_filter.png
Hope I havent wasted anybodys time.
:-[
You do not have the required permissions to view the files attached to this post.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 18920
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: In Multi language site Login Redirecting to Default lang

Post by infograf768 » Sun Jan 05, 2014 6:25 am

Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

 

Locked

Return to “Language - Joomla! 2.5”