Redirecting forms to specific pages in Joomla 3.1

In our previous tutorial we showed you how contact forms work in Joomla 3.0. One of the points that we mentioned is that when you submit the form, the page reloads and shows the user a confirmation message that the form was submitted.

You have the option to configure what URL is shown after the form is submitted. By default the same page the form was on will load, but you can change this to anything you’d like (both to another page on your site, or any other page on the web). This setting is referred to as Contact Redirect, and we’ll show you how to find and change it.

Changing the Contact Redirect Page

  1. Log into your Joomla 3.0 admin dashboard
  2. In the top menu, click Menus and then click on the menu where your contacts menu item is.
  3. In the list of menu items, click on the Contacts menu item you want to change the redirection of
  4. Click the Advanced Options tab towards top of the page
  5. Click Mail Options to expand the available options under this setting.
  6. Find the Contact Redirect setting, enter a url to redirect users to after the form has been submitted, and then click Save in the top left of the page.

    By default, this setting is blank. In our testing, we set the Contact Redirect setting to another page within our site:

    My first blog post
    http://domain.com/index.php/7-my-first-blog-post

    contact-redirect-setting

    If you look in the screenshot to the right, you can see that after we submitted the form the user was redirected to index.php/7-my-first-blog-post. The user will still see the confirmation message that their email was sent, that message will instead be shown on the page you setup the redirect to.

Leave a Reply