Forums

Relative Redirect URL

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 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.
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.
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
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.