Relative Redirect URL

How to use a relative URL for redirect in ChronoForms v6.

Overview

The issue occurs because the relative URL path is not correctly specified, leading to an incorrect redirect address.
Use a relative URL starting with a forward slash and include the subdirectory and event parameter, ensuring the full path from the site root is provided.

Answered
ChronoForms v6
om omidhz 08 Aug, 2017
When using the redirect action, I know how to use absolute URL to make the redirect function work. This is discussed here.

However, I still cannot figure out how to use a relative URL for the redirect to use.

Is this even possible with chronoform v6?
Max_admin Max_admin 09 Aug, 2017
Hi Omid,

What kind of relative url ? you can use
 {url:index.php?anything=whatever}


Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
om omidhz 09 Aug, 2017
That solution is not working properly.

When I enter
{url:index.php?option=com_chronoforms6&chronoform=create_response}

It goes to
http://mydomain.com/screening/index.php/screening/forms/registration?chronoform=create_response


FYI:
1- My Joomla is installed in http://mydomain.com/screening
2- I have a Menu item setup that is linked to the create_response form. The menu link is
http://mydomain.com/screening/index.php/screening/forms/create-response


The menu link is working correctly. For whwatever reason, my relative URL is getting confused with the link I have in my menu, which I don't understand why and how to fix.
Gr GreyHead 10 Aug, 2017
Answer
1 Likes
Hi omidhz,

You might try
{url:/index.php?option=com_chronoforms6&chronoform=create_response&event=submit}
that adds a / at the start and the event at the end,

Bob
om omidhz 15 Aug, 2017
Bob,
Your code worked. However, I had to add the subdomain to the URL. So the final code that is now working for me is:


{url:/screening/index.php?option=com_chronoforms6&chronoform=create_response&event=submit} 


Thank you for your support
This topic is locked and no more replies can be posted.