Release Blocker bug PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar LadySolveig
LadySolveig
17 Jun 2025

Pull Request to fix frontend form behaviour #42989.

Summary of Changes

The PR #42989 has unfortunately introduced an incorrect behaviour when creating the routing for the forms in frontend. With the enabled strict routing option of the sef plugin, all redirects that can be set for actions like cancel, save and similar controller functions no longer work correctly as the menu parameters can no longer be transferred.
Reason is the missing connection to the assigned menu item as the url is not generated correctly.

  • update form actions to remove option
  • ensure correct routing for forms in frontend with strict routing enabled and disabled

It's not a complete fix, but at most a band-aid. In my opinion, this should definitely be finally fixed in the router and represents a B/C break that was certainly not intended.
However, it is highly likely that this will also affect some third-party extensions.

Testing Instructions

Make sure the option for strict routing is set to yes in Plugins: System - SEF.

First Test: Create article redirect

  1. Create a menu item -> type: Create Article

grafik

  1. Set the options for redirecting by form submission and cancel

grafik

  1. Test the cancel and submission of the form and where the redirect leads to

Second Test: Login redirect

  1. Create a menu item -> type: Login Form

  2. Set the options for redirecting for login and logout

grafik

  1. Test where the redirect leads to after login and logout

Actual result BEFORE applying this Pull Request

Result for the testing instructions:
Redirect options are ignored and the final redirect always goes to the homepage.

Wrong urls in form
grafik

grafik

Expected result AFTER applying this Pull Request

Result for the testing instructions
Redirect options work and you will be redirected to the correct page after the action.

Correct urls in form
grafik

grafik

//cc @Hackwar

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

avatar LadySolveig LadySolveig - open - 17 Jun 2025
avatar LadySolveig LadySolveig - change - 17 Jun 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jun 2025
Category Front End com_config com_contact com_content com_users
avatar LadySolveig LadySolveig - change - 18 Jun 2025
The description was changed
avatar LadySolveig LadySolveig - edited - 18 Jun 2025
avatar coolcat-creations coolcat-creations - test_item - 18 Jun 2025 - Tested successfully
avatar coolcat-creations
coolcat-creations - comment - 18 Jun 2025

I have tested this item ✅ successfully on ba6f7a8

Tested successfully, thank you for the fix!


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

avatar chmst chmst - test_item - 19 Jun 2025 - Tested successfully
avatar chmst
chmst - comment - 19 Jun 2025

I have tested this item ✅ successfully on ba6f7a8

Tested in com_content + code review


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

avatar LadySolveig LadySolveig - change - 19 Jun 2025
Labels Added: Release Blocker bug PR-5.3-dev
avatar Hackwar
Hackwar - comment - 19 Jun 2025

This is not the correct fix. The right fix would be to remove the whole hard coded URL and instead use Route::_('index.php') instead.

avatar LadySolveig
LadySolveig - comment - 19 Jun 2025

Updated with the proposed fix from @Hackwar and additionally tested for user tasks - login, logout, password reset, registration and username reminder request.

If you find the time I would be very grateful if you could redo your tests. @chmst @coolcat-creations
Nothing has changed in the testing instructions, everything should lead to the same result again.

avatar LadySolveig LadySolveig - change - 19 Jun 2025
The description was changed
avatar LadySolveig LadySolveig - edited - 19 Jun 2025
avatar brianteeman
brianteeman - comment - 19 Jun 2025

it would be great if we had some consistency with the ordering of the parts of the form settings. in the long run it makes it easier to spot missing parts.
I would have done this as a separate PR to 5.4 to avoid polluting this PR and because its not a bug fix BUT as these are all views which might have overrides I wouldnt want to ask the user to check all their overrides on 5.3.x and 5.4

So please can we update this PR with changes to provide consistency in the order of parts
I would suggest

  • action
  • method
  • id
  • name
  • class

<form action="<?php echo Route::_('index.php'); ?>" method="post" id="application-form" name="adminForm" class="form-validate">

avatar webnet-assmann webnet-assmann - test_item - 20 Jun 2025 - Tested successfully
avatar webnet-assmann
webnet-assmann - comment - 20 Jun 2025

I have tested this item ✅ successfully on 07f17a5

Tested successfully. Thank you for your work!


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

avatar richard67 richard67 - alter_testresult - 21 Jun 2025 - webnet-assmann: Tested successfully

Add a Comment

Login with GitHub to post a comment