Buy Now
Sign in

Relative Redirect URL

omidhz , August 08 2017
Answered
o
omidhz

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?

admin

Hi Omid,

What kind of relative url ? you can use

				{url:index.php?anything=whatever}
				


Best regards,
Max

Max
If your main question got answered then please mark the answer using the button!

o
omidhz

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

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

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much

o
omidhz

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