? ? ? Pending

User tests: Successful: Unsuccessful:

avatar csthomas
csthomas
27 Oct 2017

Summary of Changes

Build a correct URL for links without layout or when the layout from URL is different than from menu item.

Testing Instructions

  1. Install staging joomla or 3.8.2 with sample data.

  2. On back-end enable modern routing in users.

  3. Optional enable Allow User Registration

  4. Go to home page and:

    • check module login links,
    • try to login with wrong password and check URL address after that
    • check URL address on profile edit form
    Before After
    /index.php/password-reset?view=reset /index.php/password-reset
    /index.php/username-reminder?view=remind /index.php/username-reminder
    /index.php/login?view=login /index.php/login
    /index.php/registration-form?view=registration /index.php/registration-form
    /index.php/your-profile?view=profile&layout=edit /index.php/your-profile?layout=edit

Expected result

Links with own menu item does not have a view parameter in query string.

Documentation Changes Required

No

avatar csthomas csthomas - open - 27 Oct 2017
avatar csthomas csthomas - change - 27 Oct 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Oct 2017
Category Libraries Unit Tests
avatar csthomas csthomas - change - 27 Oct 2017
Title
Modern routing - fix urls with layout
Modern routing - fix URL with layout and remove PHP Notice from URL with invalid Itemid
avatar csthomas csthomas - edited - 27 Oct 2017
avatar csthomas csthomas - change - 30 Oct 2017
The description was changed
avatar csthomas csthomas - edited - 30 Oct 2017
avatar csthomas csthomas - change - 1 Nov 2017
The description was changed
avatar csthomas csthomas - edited - 1 Nov 2017
avatar csthomas csthomas - change - 1 Nov 2017
The description was changed
avatar csthomas csthomas - edited - 1 Nov 2017
avatar csthomas csthomas - change - 14 Nov 2017
The description was changed
avatar csthomas csthomas - edited - 14 Nov 2017
avatar csthomas csthomas - change - 16 Nov 2017
Labels Added: ? ?
avatar csthomas csthomas - change - 16 Nov 2017
The description was changed
avatar csthomas csthomas - edited - 16 Nov 2017
avatar csthomas csthomas - change - 16 Nov 2017
The description was changed
avatar csthomas csthomas - edited - 16 Nov 2017
avatar csthomas csthomas - change - 21 Nov 2017
The description was changed
avatar csthomas csthomas - edited - 21 Nov 2017
avatar csthomas csthomas - change - 21 Nov 2017
The description was changed
avatar csthomas csthomas - edited - 21 Nov 2017
avatar joomdonation
joomdonation - comment - 22 Nov 2017

So I looked at the code changes and also tested, it is working fine and solve the mentioned issue. However, there are some changes in the code which I am unsure if it is necessary, Maybe less change like I did here will still do the same thing https://github.com/joomla/joomla-cms/compare/staging...joomdonation:routing-fix-simpler?expand=1

avatar csthomas
csthomas - comment - 22 Nov 2017

A few changes is done because I want to present more explicit way for routing (layout).
If there is no layout parameter in menu query this means that the default layout is 'default'.
I want to stay as it is now. My goal is #17746.

avatar joomdonation
joomdonation - comment - 22 Nov 2017

If I understand correctly, the additional changes you added to this PR is only needed if someone pass layout=default in JRoute::_ call (which is wrong, I think).

The original code looks fine to me. We are working on a PR for staging, so I would stay on safe side, the less changes, the better, only the necessary change to address the issue should be implemented.

avatar joomdonation joomdonation - test_item - 29 Nov 2017 - Tested successfully
avatar joomdonation
joomdonation - comment - 29 Nov 2017

I have tested this item successfully on 3d32326

Works as described, done a code review, too. I am not happy with some changes in the code, but It might be personal coding style only


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18429.

avatar csthomas
csthomas - comment - 29 Nov 2017

I reverted the code with non strict comparison to the false.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 30 Nov 2017

@joomdonation can you please retest?

avatar joomdonation
joomdonation - comment - 30 Nov 2017

@franz-wohlkoenig Will do after work. Maybe you can test it as well, just follow the instructions or ask us if needed. We need one more test anyway

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 30 Nov 2017

Cannot test next Days as i'm not at Home.

avatar joomdonation joomdonation - test_item - 2 Dec 2017 - Tested successfully
avatar joomdonation
joomdonation - comment - 2 Dec 2017

I have tested this item successfully on 6396a6d


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18429.

avatar csthomas csthomas - change - 6 Dec 2017
The description was changed
avatar csthomas csthomas - edited - 6 Dec 2017
avatar csthomas csthomas - change - 6 Dec 2017
The description was changed
avatar csthomas csthomas - edited - 6 Dec 2017
avatar csthomas csthomas - change - 6 Dec 2017
Title
Modern routing - fix URL with layout and remove PHP Notice from URL with invalid Itemid
Modern routing - remove view from query string
avatar csthomas csthomas - edited - 6 Dec 2017
avatar csthomas csthomas - change - 6 Dec 2017
The description was changed
avatar csthomas csthomas - edited - 6 Dec 2017
avatar csthomas csthomas - change - 6 Dec 2017
The description was changed
avatar csthomas csthomas - edited - 6 Dec 2017
avatar laoneo laoneo - test_item - 7 Dec 2017 - Tested successfully
avatar laoneo
laoneo - comment - 7 Dec 2017

I have tested this item successfully on 6396a6d


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18429.

avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Dec 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 7 Dec 2017

Ready to Commit after two successful tests.

avatar mbabker mbabker - change - 7 Dec 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-12-07 13:00:24
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 7 Dec 2017
avatar mbabker mbabker - merge - 7 Dec 2017

Add a Comment

Login with GitHub to post a comment