No Code Attached Yet bug
avatar luX0r-reload
luX0r-reload
6 Sep 2024

Hi.
I am working on a multilingual site (eng, ita).
Everything works fine except the redirect after login.

I want the user who chooses the “ita” language to be redirected after login to the “ita” language article.
I want the user who chooses the “eng” language to be redirected after login to the “eng” language article.

Items 110 and 111 are the menu items for home “ita” and home “eng”.

In the login menu item index.php?option=com_users&view=login if I choose the redirection type “internal URL” and specify index.php?Itemid=110 for language “ita” and index.php?Itemid=111 for language “eng” it works.

If I choose the redirection type “Menu item” and select the items (110 and 111) for “ita” and for “eng” it does not work: even with the “eng” language I am redirected to the “ita” item. It works instead if I point to the menu item for the general home (all languages).

I tried to choose for redirect other menu items linked to articles other than home... same result, it doesn't work.

Joomla! 5.1.3 stable
PHP 8.1.2
Apache/2.4.52

avatar luX0r-reload luX0r-reload - open - 6 Sep 2024
avatar joomla-cms-bot joomla-cms-bot - change - 6 Sep 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 6 Sep 2024
avatar luX0r-reload luX0r-reload - change - 6 Sep 2024
Title
Joomla! 5 redirect after login fail in multilanguage site
Joomla! 5 redirect after login does not work in a multilingual site
avatar luX0r-reload luX0r-reload - edited - 6 Sep 2024
avatar luX0r-reload luX0r-reload - change - 6 Sep 2024
The description was changed
avatar luX0r-reload luX0r-reload - edited - 6 Sep 2024
avatar fgsw
fgsw - comment - 15 Sep 2024

Have you asked in the forum?

avatar luX0r-reload
luX0r-reload - comment - 15 Sep 2024

It's a bug, not a site configuration problem.

avatar fgsw
fgsw - comment - 23 Sep 2024

It's a bug, not a site configuration problem.

@Quy If it's a bug, label bug is needed.

avatar brianteeman
brianteeman - comment - 23 Sep 2024

@fgsw have you confirmed it is a bug?

avatar fgsw
fgsw - comment - 23 Sep 2024

@fgsw have you confirmed it is a bug?

no.

avatar MayaSima
MayaSima - comment - 24 Oct 2024

After extensive testing with multiple Joomla developers and vendors, I can confirm this is a bug. Regardless of whether the login page or the login module is used, redirects consistently lead to the URL associated with the primary language. For example, setting a redirect to es/blog results in the user being redirected to en/blog.

This issue is critical for several of our clients, and they are willing to sponsor a fast-track solution. Please prioritize this and assign someone to investigate as soon as possible.

Thank you for your prompt attention to this matter.

avatar sousa9g
sousa9g - comment - 24 Oct 2024

We can also confirm that it is a redirection bug, specifically when using with associated menu items.

avatar Quy Quy - change - 29 Oct 2024
Labels Added: bug
avatar Quy Quy - labeled - 29 Oct 2024
avatar protectkids
protectkids - comment - 30 Oct 2024

We can also confirm that there is a bug in the Joomla login functionality when using a multilingual site. The login module or component is incorrectly redirecting to a location associated with other languages. The redirect always goes to the default language of the site instead of taking into account the actual redirect settings from the component or module.

Steps to reproduce the issue

  1. Set up a Joomla multilingual site with at least two languages (e.g., English and French) and set English as the default language.
  2. Create a menu item (e.g., Account Dashboard) for each language.
  3. Associate the menu items appropriately.
  4. Create a login module or component for each language and configure them to redirect to the corresponding menu created in step 2 based on the corresponding language.
  5. Attempt to log in using the non-default language (e.g., French).

Expected result

When logging in using the non-default login module (e.g., French), the user should be redirected to the French account menu (e.g., the French version of the Account Dashboard). Instead, the user should not be redirected to the English account menu.

Actual result

Instead of redirecting to the French account menu, the user is redirected to the English account menu, regardless of the language of the login attempt.

System information (as much as possible)

Joomla 5.2.0
PHP Version: 8.2.22
DB: MySQL 8.0.39

Additional comments

We tested by removing the associations, and in that case, the redirects worked correctly.

Add a Comment

Login with GitHub to post a comment