-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] incorrect user action url paths appear in multilanguage #13142
Comments
can you please test on staging and give some more details, like where you place these menu items = which menutype. |
Hmm... |
I saw this on the downloads site too when the menu item aliases had the language code in them (i.e. login-fr or login-us) for the login page. I just changed all the aliases to be 'login' for all languages to "fix" it. |
Associations work fine and with correct urls as long as we use the switcher. |
The issue looks indeed related to JRoute() and com_users. The content of the JRoute here is totally correct. But once passed through JRoute() we get indeed the wrong url. |
Hi, yes the menutype / name doesn't matter in this case. I've tried moving them around/ recreating in other menus to see if it had an effect but it seems the issue only occurs to com_users urls. I haven't noticed it in any other menu items I created. |
Please test this patch |
Hi, it worked OK in my case and fixed the 404 from rel="alternate" on login. I will try and check if anything else was affected. |
Set to "closed" on behalf of @infograf768 by The JTracker Application at issues.joomla.org/joomla-cms/13142 |
Closing as we have a patch. Tests should be done on a patched staging branch, not on 3.6.4 as we also corrected some login issues in staging This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13142. |
Steps to reproduce the issue
Install latest stable Joomla version
![image](https://cloud.githubusercontent.com/assets/20220341/21041421/ce361f58-bde2-11e6-94c2-4890209b093d.png)
![image](https://cloud.githubusercontent.com/assets/20220341/21041432/de021d38-bde2-11e6-8b60-da88277440f3.png)
Setup multilanguage
Create two menu items
Visiting the Greek URL
https://www.domain.com/el/είσοδος-χρηστών
I get in HTML source codeVisiting the English URL
https://www.domain.com/en/login
I get in HTML source codeExpected result
In both cases it should yield
System information (as much as possible)
Tested using Joomla 3.6.4 on Debian 8 and php 5.6.27
Additional comments
I don't know if it helps at all but using xdebug I tried to troubleshoot a bit and I reached file
libraries/cms/router/site.php
near line 496:
Debugging in english language at this point of execution $itemID in my case was 676 which is the Greek menu itemID, however after executing
$crouter->build($query)
the $query['Itemid'] is changed to 693 which is the english language menu itemID.Consequently it's using
$query['itemId']
to build the path to my knowledge.Any idea why else this might be happening? Thanks in advance
PS: Same thing happes if I create a menu item for password reset, username reminder, registration etc etc.
The text was updated successfully, but these errors were encountered: