joomla / joomla-cms

Home of the Joomla! Content Management System
https://www.joomla.org
GNU General Public License v2.0
4.76k stars 3.65k forks source link

Joomla! 5 redirect after login does not work in a multilingual site #44022

Open luX0r-reload opened 1 month ago

luX0r-reload commented 1 month ago

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

fgsw commented 1 month ago

Have you asked in the forum?

luX0r-reload commented 1 month ago

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

fgsw commented 1 month ago

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

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

brianteeman commented 1 month ago

@fgsw have you confirmed it is a bug?

fgsw commented 1 month ago

@fgsw have you confirmed it is a bug?

no.

MayaSima commented 2 days ago

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.

sousa9g commented 1 day ago

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