Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
ba6f7a8
🐛 Fix strict routing for frontend forms (band-aid only)
LadySolveig Jun 17, 2025
9d6e6ac
Add layout=edit for consistency
LadySolveig Jun 19, 2025
07f17a5
Update form actions to remove option from url that cause wrong route
LadySolveig Jun 19, 2025
6cc49f0
Merge branch '5.3-dev' into 5.3/fix/strict-routing-band-aid
richard67 Jun 21, 2025
2e48d20
Merge branch '5.3-dev' into 5.3/fix/strict-routing-band-aid
rdeutz Jun 25, 2025
3fa4508
Change sort order for attributes in form element to provide better co…
LadySolveig Jun 25, 2025
7adc2ea
Update components/com_config/tmpl/config/default.php
LadySolveig Jun 25, 2025
2d3a85a
Update components/com_users/tmpl/remind/default.php
LadySolveig Jun 25, 2025
20782c8
Update components/com_users/tmpl/reset/default.php
LadySolveig Jun 25, 2025
b59d515
Merge branch 'joomla:5.3-dev' into 5.3/fix/strict-routing-band-aid
LadySolveig Jun 26, 2025
5607570
Fix language key generation for save success message in FormController
LadySolveig Jun 26, 2025
f941d03
Revert "Fix language key generation for save success message in FormC…
LadySolveig Jun 26, 2025
ec1d7bb
Fix language key generation for save success message in FormControlle…
LadySolveig Jun 26, 2025
bd70187
Revert "Fix language key generation for save success message in FormC…
LadySolveig Jun 28, 2025
4e0404f
Fix language key generation for save success message in FormControlle…
LadySolveig Jun 30, 2025
be58573
Merge branch '5.3-dev' into 5.3/fix/strict-routing-band-aid
LadySolveig Jun 30, 2025
5d3cf35
Update form actions to use only the index.php route
LadySolveig Jul 2, 2025
54aa54a
Merge branch '5.3-dev' into 5.3/fix/strict-routing-band-aid
bembelimen Jul 30, 2025
a62a8c6
Merge branch 'joomla:5.3-dev' into 5.3/fix/strict-routing-band-aid
LadySolveig Aug 3, 2025
00b7e54
Remove changes form actions in user and privacy frontend forms to use…
LadySolveig Aug 3, 2025
0b812bc
Re-add record ID, method, and user ID variables
LadySolveig Aug 3, 2025
955a894
Merge branch '5.3-dev' into 5.3/fix/strict-routing-band-aid
LadySolveig Aug 5, 2025
0808754
Merge branch '5.3-dev' into 5.3/fix/strict-routing-band-aid
bembelimen Aug 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/com_config/tmpl/config/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</h1>
</div>
<?php endif; ?>
<form action="<?php echo Route::_('index.php?option=com_config'); ?>" id="application-form" method="post" name="adminForm" class="form-validate">
<form action="<?php echo Route::_('index.php?option=com_config&view=config'); ?>" id="application-form" method="post" name="adminForm" class="form-validate">

<div class="mb-2 d-flex">
<button type="button" class="btn btn-sm btn-outline-info button-inlinehelp ms-auto">
Expand Down
2 changes: 1 addition & 1 deletion components/com_config/tmpl/modules/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}
?>

<form action="<?php echo Route::_('index.php?option=com_config'); ?>" method="post" name="adminForm" id="modules-form" class="form-validate">
<form action="<?php echo Route::_('index.php?option=com_config&view=modules'); ?>" method="post" name="adminForm" id="modules-form" class="form-validate">
<div class="row">
<div class="col-md-12">
<legend><?php echo Text::_('COM_CONFIG_MODULES_SETTINGS_TITLE'); ?></legend>
Expand Down
2 changes: 1 addition & 1 deletion components/com_config/tmpl/templates/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</h1>
</div>
<?php endif; ?>
<form action="<?php echo Route::_('index.php?option=com_config'); ?>" method="post" name="adminForm" id="templates-form" class="form-validate">
<form action="<?php echo Route::_('index.php?option=com_config&view=templates'); ?>" method="post" name="adminForm" id="templates-form" class="form-validate">

<div id="page-site" class="tab-pane active">
<div class="row">
Expand Down
2 changes: 1 addition & 1 deletion components/com_contact/tmpl/contact/default_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

?>
<div class="com-contact__form contact-form">
<form id="contact-form" action="<?php echo Route::_('index.php'); ?>" method="post" class="form-validate form-horizontal well">
<form id="contact-form" action="<?php echo Route::_('index.php?option=com_contact&view=contact'); ?>" method="post" class="form-validate form-horizontal well">
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
<?php if ($fieldset->name === 'captcha' && $this->captchaEnabled) : ?>
<?php continue; ?>
Expand Down
2 changes: 1 addition & 1 deletion components/com_contact/tmpl/form/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</div>
<?php endif; ?>

<form action="<?php echo Route::_('index.php?option=com_contact&id=' . (int) $this->item->id); ?>" method="post"
<form action="<?php echo Route::_('index.php?option=com_contact&view=form&id=' . (int) $this->item->id); ?>" method="post"
Comment thread
LadySolveig marked this conversation as resolved.
Outdated
Comment thread
LadySolveig marked this conversation as resolved.
Outdated
name="adminForm" id="adminForm" class="form-validate form-vertical">
<fieldset>
<?php echo HTMLHelper::_('uitab.startTabSet', $this->tab_name, ['active' => 'details', 'recall' => true, 'breakpoint' => 768]); ?>
Expand Down
2 changes: 1 addition & 1 deletion components/com_content/tmpl/archive/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</div>
<?php endif; ?>

<form id="adminForm" action="<?php echo Route::_('index.php'); ?>" method="post" class="com-content-archive__form">
<form id="adminForm" action="<?php echo Route::_('index.php?option=com_content&view=archive'); ?>" method="post" class="com-content-archive__form">
<fieldset class="com-content-archive__filters filters">
<legend class="visually-hidden">
<?php echo Text::_('COM_CONTENT_FORM_FILTER_LEGEND'); ?>
Expand Down
2 changes: 1 addition & 1 deletion components/com_content/tmpl/form/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</div>
<?php endif; ?>

<form action="<?php echo Route::_('index.php?option=com_content&a_id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="adminForm" class="form-validate form-vertical">
<form action="<?php echo Route::_('index.php?option=com_content&view=form&layout=edit&a_id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="adminForm" class="form-validate form-vertical">
<fieldset>
<?php echo HTMLHelper::_('uitab.startTabSet', $this->tab_name, ['active' => 'editor', 'recall' => true, 'breakpoint' => 768]); ?>

Expand Down
2 changes: 1 addition & 1 deletion components/com_privacy/tmpl/confirm/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</h1>
</div>
<?php endif; ?>
<form action="<?php echo Route::_('index.php?option=com_privacy&task=request.confirm'); ?>" method="post" class="form-validate form-horizontal well">
<form action="<?php echo Route::_('index.php?option=com_privacy&view=confirm&task=request.confirm'); ?>" method="post" class="form-validate form-horizontal well">
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
<fieldset>
<?php if (!empty($fieldset->label)) : ?>
Expand Down
2 changes: 1 addition & 1 deletion components/com_privacy/tmpl/remind/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</h1>
</div>
<?php endif; ?>
<form action="<?php echo Route::_('index.php?option=com_privacy&task=request.remind'); ?>" method="post" class="form-validate form-horizontal well">
<form action="<?php echo Route::_('index.php?option=com_privacy&view=remind&task=request.remind'); ?>" method="post" class="form-validate form-horizontal well">
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
<fieldset>
<?php if (!empty($fieldset->label)) : ?>
Expand Down
2 changes: 1 addition & 1 deletion components/com_privacy/tmpl/request/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</div>
<?php endif; ?>
<?php if ($this->sendMailEnabled) : ?>
<form action="<?php echo Route::_('index.php?option=com_privacy&task=request.submit'); ?>" method="post" class="form-validate form-horizontal well">
<form action="<?php echo Route::_('index.php?option=com_privacy&view=request&task=request.submit'); ?>" method="post" class="form-validate form-horizontal well">
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
<fieldset>
<?php if (!empty($fieldset->label)) : ?>
Expand Down
2 changes: 1 addition & 1 deletion components/com_users/tmpl/captive/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class="btn btn-sm btn-secondary"
</div>
<?php endif; ?>

<form action="<?php echo Route::_('index.php?option=com_users&task=captive.validate&record_id=' . ((int) $this->record->id)) ?>"
<form action="<?php echo Route::_('index.php?option=com_users&view=captive&task=captive.validate&record_id=' . ((int) $this->record->id)) ?>"
id="users-mfa-captive-form"
method="post"
class="form-horizontal"
Expand Down
2 changes: 1 addition & 1 deletion components/com_users/tmpl/login/default_login.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</div>
<?php endif; ?>

<form action="<?php echo Route::_('index.php?option=com_users&task=user.login'); ?>" method="post" class="com-users-login__form form-validate form-horizontal well" id="com-users-login__form">
<form action="<?php echo Route::_('index.php?option=com_users&view=login&task=user.login'); ?>" method="post" class="com-users-login__form form-validate form-horizontal well" id="com-users-login__form">

<fieldset>
<?php echo $this->form->renderFieldset('credentials', ['class' => 'com-users-login__input']); ?>
Expand Down
2 changes: 1 addition & 1 deletion components/com_users/tmpl/login/default_logout.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</div>
<?php endif; ?>

<form action="<?php echo Route::_('index.php?option=com_users&task=user.logout'); ?>" method="post" class="com-users-logout__form form-horizontal well">
<form action="<?php echo Route::_('index.php?option=com_users&view=login&layout=logout&task=user.logout'); ?>" method="post" class="com-users-logout__form form-horizontal well">
<div class="com-users-logout__submit control-group">
<div class="controls">
<button type="submit" class="btn btn-primary">
Expand Down
2 changes: 1 addition & 1 deletion components/com_users/tmpl/method/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
$hideSubmit = !$this->renderOptions['show_submit'] && !$this->isEditExisting
?>
<div class="card card-body">
<form action="<?php echo Route::_(sprintf("index.php?option=com_users&task=method.save&id=%d&method=%s&user_id=%d", $recordId, $method, $userId)) ?>"
<form action="<?php echo Route::_(sprintf("index.php?option=com_users&view=method&task=method.save&id=%d&method=%s&user_id=%d", $recordId, $method, $userId)) ?>"
class="form form-horizontal" id="com-users-method-edit" method="post">
<?php echo HTMLHelper::_('form.token') ?>
<?php if (!empty($this->returnURL)) : ?>
Expand Down
2 changes: 1 addition & 1 deletion components/com_users/tmpl/profile/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</div>
<?php endif; ?>

<form id="member-profile" action="<?php echo Route::_('index.php?option=com_users'); ?>" method="post" class="com-users-profile__edit-form form-validate form-horizontal well" enctype="multipart/form-data">
<form id="member-profile" action="<?php echo Route::_('index.php?option=com_users&view=profile&layout=edit'); ?>" method="post" class="com-users-profile__edit-form form-validate form-horizontal well" enctype="multipart/form-data">
<?php // Iterate through the form fieldsets and display each one. ?>
<?php foreach ($this->form->getFieldsets() as $group => $fieldset) : ?>
<?php $fields = $this->form->getFieldset($group); ?>
Expand Down
2 changes: 1 addition & 1 deletion components/com_users/tmpl/registration/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</div>
<?php endif; ?>

<form id="member-registration" action="<?php echo Route::_('index.php?option=com_users&task=registration.register'); ?>" method="post" class="com-users-registration__form form-validate" enctype="multipart/form-data">
<form id="member-registration" action="<?php echo Route::_('index.php?option=com_users&view=registration&task=registration.register'); ?>" method="post" class="com-users-registration__form form-validate" enctype="multipart/form-data">
<?php // Iterate through the form fieldsets and display each one. ?>
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
<?php if ($fieldset->name === 'captcha' && $this->captchaEnabled) : ?>
Expand Down
2 changes: 1 addition & 1 deletion components/com_users/tmpl/remind/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</h1>
</div>
<?php endif; ?>
<form id="user-registration" action="<?php echo Route::_('index.php?option=com_users&task=remind.remind'); ?>" method="post" class="com-users-remind__form form-validate form-horizontal well">
<form id="user-registration" action="<?php echo Route::_('index.php?option=com_users&view=remind&task=remind.remind'); ?>" method="post" class="com-users-remind__form form-validate form-horizontal well">
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
<fieldset>
<?php if (isset($fieldset->label)) : ?>
Expand Down
2 changes: 1 addition & 1 deletion components/com_users/tmpl/reset/complete.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</h1>
</div>
<?php endif; ?>
<form action="<?php echo Route::_('index.php?option=com_users&task=reset.complete'); ?>" method="post" class="com-users-reset-complete__form form-validate form-horizontal well">
<form action="<?php echo Route::_('index.php?option=com_users&view=reset&task=reset.complete'); ?>" method="post" class="com-users-reset-complete__form form-validate form-horizontal well">
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
<fieldset>
<?php if (isset($fieldset->label)) : ?>
Expand Down
2 changes: 1 addition & 1 deletion components/com_users/tmpl/reset/confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</h1>
</div>
<?php endif; ?>
<form action="<?php echo Route::_('index.php?option=com_users&task=reset.confirm'); ?>" method="post" class="com-users-reset-confirm__form form-validate form-horizontal well">
<form action="<?php echo Route::_('index.php?option=com_users&view=reset&task=reset.confirm'); ?>" method="post" class="com-users-reset-confirm__form form-validate form-horizontal well">
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
<fieldset>
<?php if (isset($fieldset->label)) : ?>
Expand Down
2 changes: 1 addition & 1 deletion components/com_users/tmpl/reset/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</h1>
</div>
<?php endif; ?>
<form id="user-registration" action="<?php echo Route::_('index.php?option=com_users&task=reset.request'); ?>" method="post" class="com-users-reset__form form-validate form-horizontal well">
<form id="user-registration" action="<?php echo Route::_('index.php?option=com_users&view=reset&task=reset.request'); ?>" method="post" class="com-users-reset__form form-validate form-horizontal well">
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
<fieldset>
<?php if (isset($fieldset->label)) : ?>
Expand Down