Problem with redirection still exist?

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

Moderator: 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
wojtekkk87
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Thu Mar 29, 2007 6:25 pm
Location: Poland
Contact:

Problem with redirection still exist?

Post by wojtekkk87 » Sat Aug 25, 2012 10:47 am

Hi guys,
I am building right now a web page based on Joomla 2.5 and multilingual content.
Language filter:
- Language Selection for new Visitors: browser settings
- Automatic Language Change: Yes
- Menu associations: Yes
- Remove URL Language Code: No
- Add alternate meta tags: No

I have few separate login module for each language which redirects user to specified page (my own component). Main webpage without login is supported also with other languages.

Case 1. User vists my webpage which appears e.g in english, he logs in, his default language is english and he is redirected correctly.

Case 2. User visits my webpage which appears e.g. in english, he logs in but his default language is spanish. Then he should be redirected to spanish webpage (which is associated with english menu item). But he is redirected to the home page. Do you know how to solve this problem?

Thanks in advice for any replys.
I'm trying to understand ...

Potus001
Joomla! Guru
Joomla! Guru
Posts: 586
Joined: Thu Nov 25, 2010 9:38 am

Re: Problem with redirection still exist?

Post by Potus001 » Sat Aug 25, 2012 1:40 pm

I would initially suggest a re-read of the multilingual tutorial.

There is a lot to cover and, on the first read, it's so easy to overlook something.

May be worth checking that the Frontend language for his userid within the User Manager has been set correctly.

Set up a test Spanish user and see if you can reproduce the problem.
You have the default language as Browser Settings. This might be an issue if he's not in Spain.

What happens when you change languages through the Language Switcher?
Are all the spanish pages OK, and do they link correctly with the english pages?

Can we see the site?

User avatar
wojtekkk87
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Thu Mar 29, 2007 6:25 pm
Location: Poland
Contact:

Re: Problem with redirection still exist?

Post by wojtekkk87 » Sat Aug 25, 2012 2:34 pm

Yes, whe the user is logged in everything is alright. I mean user can change language in language switcher and he is redirected to the correct page in correct language. The issue is if user which is already registered (and his default language is spanish) wants to log in but he is using browser with language set to e.g. EN (maybe he is using not his own computer or whatever the reason is) then when he log in, he is not redirected to webpage in spanish nor in english. But to homepage set as default in Joomla. I dont think it is correct behaviour and would say that it's bug in language filter plugin or login module.
I'm trying to understand ...

Potus001
Joomla! Guru
Joomla! Guru
Posts: 586
Joined: Thu Nov 25, 2010 9:38 am

Re: Problem with redirection still exist?

Post by Potus001 » Sat Aug 25, 2012 5:36 pm

If his browser defaults to English then the site is working OK.

You'll have to change the default language to Spanish for this user if he's not using a spanish browser.

User avatar
wojtekkk87
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Thu Mar 29, 2007 6:25 pm
Location: Poland
Contact:

Re: Problem with redirection still exist?

Post by wojtekkk87 » Sat Aug 25, 2012 5:43 pm

How can I know that he is speeking spanish before he logs in? When he logs in webpage is displayed in his default language. But it doesn't redirect it to right place.
I'm trying to understand ...

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

Re: Problem with redirection still exist?

Post by infograf768 » Sun Aug 26, 2012 8:29 am

1. As the label says, Browser Settings choice is ONLY used for new visitors (when it works), i.e. before any language cookie is set.
Therefore the redirection when login is independant of that parameter and of the Browser preferred languages.

2. The redirection as set in the module "Login Redirection Page" depends on which page the user is when logging.

A. The page with the login module is displayed in the default site language set for the user:
Redirection as set in the module works normally.

B. The page with the login module is NOT displayed in the default site language set for the user:
===> 2 cases:

=> Case 1: The page with the login module was loaded by a Menu Item associated to a menu item in the default site language set for the user.
Redirection works fine to that associated page

=> Case 2: The page with the login module was NOT loaded by a Menu Item associated to a menu item in the default site language set for the user.
Redirection is to the Home page in that language.

Is this an issue? Yes it is.
Can we solve it easily?
No. This is a limitation of the multilanguage feature in core Joomla.
To really solve it means that we could solve the general association between any item.
This was unsuccessful until now.

Is there a solution?
Yes: display the login module ONLY on Home pages and Associated menu items pages.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

Potus001
Joomla! Guru
Joomla! Guru
Posts: 586
Joined: Thu Nov 25, 2010 9:38 am

Re: Problem with redirection still exist?

Post by Potus001 » Sun Aug 26, 2012 12:22 pm

If the Login menu is attached to each language menu (in this case English and Spanish) then the Login form wiih show in that language.

This works fine on my site.

If the user wants to register, then he goes to a new form -

index.php/en/login-XX?view=registration

where XX is the language code.

Can this form be updated to include a dropdown box for the site languages, the default being the one chosen (or defaulted) by the user, in this case Spanish?

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

Re: Problem with redirection still exist?

Post by infograf768 » Sun Aug 26, 2012 4:42 pm

@Potus001
Your question is unrelated to this topic.
Next time please open a new topic.

The site language choice for a new registration exists as a parameter in Users=>Options ->Open a Modal called Users Configuration
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

Potus001
Joomla! Guru
Joomla! Guru
Posts: 586
Joined: Thu Nov 25, 2010 9:38 am

Re: Problem with redirection still exist?

Post by Potus001 » Sun Aug 26, 2012 4:53 pm

Sorry Jean-Marie Simone but this was directly relevant to the OP.

If a new user on a multilligual site had the opportunity to specify his language on registration then this issue may not arise.

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

Re: Problem with redirection still exist?

Post by infograf768 » Sun Aug 26, 2012 5:27 pm

As I said, the parameter exists in the User manager options and it does not change the original issue.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
wojtekkk87
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Thu Mar 29, 2007 6:25 pm
Location: Poland
Contact:

Re: Problem with redirection still exist?

Post by wojtekkk87 » Mon Sep 03, 2012 7:21 pm

wojtekkk87 wrote:Case 2. User visits my webpage which appears e.g. in english, he logs in but his default language is spanish. Then he should be redirected to spanish webpage (which is associated with english menu item). But he is redirected to the home page.
So even if I create default (associated) menu for each language and I create login module for each language. This case will still doesn't work correctly if redirection link is different than home?

So maybe is it possible to set diffrent homepage for logged in users? The isue is that I want have default homepage with articles and so on if user is not logged in. But after he logs in I want to redirect him to my component... but if I use languages... and above case happens... so it doesn't work correctly...
I'm trying to understand ...

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

Re: Problem with redirection still exist?

Post by infograf768 » Tue Sep 04, 2012 10:36 am

=> Case 1: The page with the login module was loaded by a Menu Item associated to a menu item in the default site language set for the user.
Redirection works fine to that associated page
This should work fine
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group


Locked

Return to “Language - Joomla! 2.5”