Buy Now
Sign in

How to code Redirect Action in CF v6

omidhz , April 18 2017
Answered
O
omidhz
I want to use the redirect action after user log in. I added the redirect action to Success section of Joomla Login. User is logging in correctly, but the redirect is not working.

I want my users to be redirected to
/index.php?option=com_content&view=article&id=6&Itemid=112

My user are being redirected to
http://localhost/joomla/index.php?option=com_chronoforms6&chronoform=user-registration&%2Findex_php%3Foption=com_content&view=article&id=6&Itemid=112

I tried the URL parameters without the initial /, but I got the same problem.
When I change the redirect URL to {url:/index.php?option=com_content&view=article&id=6&Itemid=112}, it reloads the form and does not redirect to the article.

I'm not sure what I'm doing wrong.
Attachments
redirect.JPG
redirect.JPG
(35.78 KiB)
366 Downloads/Views
GreyHead
Hi omidhz,

I suggest that you try putting the full url in the Redirect URL box e.g.
http://localhost/joomla/index.php?option=com_content&view=article&id=6&Itemid=112

Or I think that you could put just the first part there: http://localhost/joomla/index.php and add the parameters is the box below
option=com_content
view=article
id=6
Itemid=112

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

Just a quick note here, in v6 the parameters should have : instead of = as below:

option:com_content
view:article
id:6
Itemid:112


Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
O
omidhz
Thank you for your reply.
Here are what I have tested and the results.

=======================
Redirect URL: http://localhost/joomla/index.php
URL Parameters:
    option:com_content
    view:article
    id:6
    Itemid:112

Result: Form redirected to http://localhost/joomla/index.php

=====================
Redirect URL: {url:http://localhost/joomla/index.php}
URL Parameters:
    option:com_content
    view:article
    id:6
    Itemid:112

Result: Same form reloaded after submission

=====================
Redirect URL: http://localhost/joomla/index.php?option=com_content&view=article&id=6&Itemid=112
URL Parameters: Empty
Result: Same form reloaded after submission

=====================
Redirect URL: http://localhost/joomla/index.php?option=com_content&view=article&id=6&Itemid=112
URL Parameters: Empty
Result: Redirect worked properly.

=====================
Redirect URL: index.php?option=com_content&view=article&id=6&Itemid=112
URL Parameters: Empty
Result: Redirect worked properly.
admin
Hi,

Actually I was mistaken, the redirect parameters should have "=", so the format posted by Bob is the correct one, the = sign is only used in the redirect parameters, the options fields in dropdown/checkboxes and in the locales.

Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
R
rtobias
Quick clarification question: What would/could go in the Event box?
Randy
admin
Hi Randy,

The event name you want to redirect to, you may ignore that and include the event and its name in the parameters box.

Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!