Added support for a custom registration menu item link to the Users Login menu item (com_users).
Introduced a new customRegLinkMenu parameter in the menu item XML, mirroring the logic already present in the login module.
Login view (default_login.php) now outputs the registration link based on this custom menu parameter, fully supporting language and menu routing if set.
Falls back to the default registration view if no menu is selected.
Testing Instructions
Go to Menus > [Your Menu] > Add/Edit Login Menu Item.
You will see a new parameter to select a "Registration Page" at the bottom of the Options tab (below Logout section)
Select any menu item you want to use for user registration, or leave it unset for default behavior.
Visit the front-end login page using this menu item.
Confirm that the registration link points to your selected custom menu if set, or the default registration view if not.
Actual result BEFORE applying this Pull Request
The registration link on the login page always points to the default registration view, with no way to override or select a custom menu item.
No option to select a custom registration menu item in the login menu item parameters.
Expected result AFTER applying this Pull Request
Site admins can select a custom menu item for the registration link in the login menu item parameters.
The login page registration link uses the selected menu item.
If no menu item is selected, the link defaults to the standard registration view (existing behavior).
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
I have tested this item ✅ successfully on 99bb9ba
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45715.