-
-
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
[4.0] Fix build SEF URL for component view without own menu item #18924
Conversation
Tested this patch, it solves the issue of creating a new account from the module when we do not have a Registration Menu item. |
Thanks, I will change one more line, replace |
Could you please explain why you get $item from $query['Itemid'] before component router build process? Look like this change the original logic of the routing As I understand, the original code give component router a chance to find correct Itemid (logical to me) for the routing, so we should try to get $item after component build process rater than before. So the change like this 4.0-dev...joomdonation:patch-2 seems more safe? |
In general, build URL process is split into 3 stages: ( Itemid is set up in Maybe you would agree with me that Non SEF process does not call |
I have tested this item ✅ successfully on d55cd2a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18924. |
I have not tested this item. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18924. |
I have tested this item ✅ successfully on d55cd2a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18924. |
Ready to Commit after two successful tests. |
I have tested this item ✅ successfully on d55cd2a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18924. |
The code change looks good and the logic is correct. I would sign off on this. 😉 |
@wilsonge This PR should be merged, please |
Thanks :) |
This code breaks several components logic out there that rely on the router to find an Itemid #19829 |
@joeforjoomla Yes, this PR breaks it. When you build a URL you can add your own Before (3.x) you could re-change My purpose was:
|
Pull Request for Issue #18923
Summary of Changes
/component/[COMPONENT_NAME]/
if menu item component is not equal toquery[option]
.$query['Itemid']
.I removed a way when the build rule can change menu route by changing value in
query['Itemid']
.This example describe old way that I removed.
Testing Instructions
See issue and code review.
Expected result
SEF links is build in correct way.
Note:
IMO similar PR also can be applied to J.3.x