?
avatar hfittipaldi
hfittipaldi
13 Jul 2018

Steps to reproduce the issue

Create a menu item to link to user profile menu option of com_users, set alias to user-profile. Create a menu item to link to user edit profile menu option of com_users, set alias to user-edit-profile.
Go to user profile and click on link 'Edit Profile'

Expected result

Go to the correct page user-edit-profile

Actual result

The link is going to user-profile?layout=edit

System information (as much as possible)

Windows 10 - 64bits
MYSQL 5.7.14
PHP 7.1.12
Apache 2.4.23 (Win64)
Joomla! 3.8.10 Stable

Additional comments

avatar hfittipaldi hfittipaldi - open - 13 Jul 2018
avatar joomla-cms-bot joomla-cms-bot - change - 13 Jul 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Jul 2018
avatar hfittipaldi hfittipaldi - change - 13 Jul 2018
Title
[Modern routing] Fix wrong link to user profile
[Modern routing] Fix wrong link to user edit profile
avatar hfittipaldi hfittipaldi - edited - 13 Jul 2018
avatar mbabker
mbabker - comment - 13 Jul 2018

Duplicate of #20485 and #20958

avatar mbabker mbabker - change - 13 Jul 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-07-13 15:05:46
Closed_By mbabker
avatar mbabker mbabker - close - 13 Jul 2018
avatar hfittipaldi
hfittipaldi - comment - 13 Jul 2018

Well, not quite. The issue #20485 refers to the cancel button, this is working fine. And the issue #20958 asks for a link to the profile view from the edit profile form, this is the cancel button.
Mine issue refers to the link 'edit profile' on profile page when there is a menu item pointing to edit profile page.

avatar mbabker
mbabker - comment - 13 Jul 2018

It's the same underlying root issue. The router doesn't account for layouts in generating URIs and the profile view has multiple layouts.

avatar hfittipaldi
hfittipaldi - comment - 13 Jul 2018

So, you're suggesting that I override the profile view layout pointing to the correct page? It is easy. But, to me, it seems an issue that has to be correct.

avatar mbabker
mbabker - comment - 13 Jul 2018

And that's why the other two items are still open ? (it's a confirmed bug, we don't need multiple issues open for the same item and generally close duplicates to keep things in one spot)

avatar hfittipaldi
hfittipaldi - comment - 13 Jul 2018

My two cents, then: close the issue #20958, because there already is the cancel button. The other one refers to Joomla! 4.0 which is still in development, and my issue is the 'correct one' ?

Add a Comment

Login with GitHub to post a comment