Forums

Joomla 4. Redirect within form displays result in home page

wallyhowe 08 Mar, 2023
I am converting my site to Joomla 4
All forms are in version 7 in Joomla 3 and have not been amended for Joomla 4.
In Joomla 3 redirects to another page continue in the same parent page url from where the form was loaded.
In Joomla 4 the redirect result appears in the middle of the home page. At first I though the form was not working until I scrolled down and found it.
I am simply using the Page/Url box in the redirect with the pagegroup.pagename as the entry.
The form process works.

How can I get the form to continue in the same page window and not inside the home page? Is there some new syntax for Joomla 4 I am missing?
wbuk 10 Mar, 2023
Can you show a screenshot of what you mean?
wallyhowe 10 Mar, 2023
I can't seem to post an image.
I have a form that displays a list of invoices and each line has an edit field where it goes to a page to edit the invoice and email it.
In Joomla 3 the edit page opens in the same browser window, replacing the list of images.
In Joomla 4 the edit page is displayed in a browser window which contains the home page with the form data present part way down the page.

In Joomla 3 in the Text node for the Edit box I simply had a Link element and in the Page/Url box I had
List.process_invoice
Where List was the Page Group name and process_invoice was the page name

After much trial and error I discovered the syntax that works in Joomla 4.
In the Page/Url box I put:
{index.php}
I then added a parameter and in the parameter name I put:
gpage
and in the parameter value I put:
process_invoice

This now works exactly the same as Joomla 3.

Wallyhowe
You need to login to be able to post a reply.