Buy Now
Sign in

How to code Redirect Action in CF v6

omidhz , April 18 2017, 23:54
O
omidhz 295
April 18 2017, 23:54 #367100
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)
1340 Downloads/Views
GreyHead 65
April 19 2017, 08:07 #367105
 1
 Answer
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
If you'd like to buy me a coffee or two, thank you very much
admin 33
April 19 2017, 08:43 #367108
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
O
omidhz 295
April 20 2017, 00:36 #367160
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 33
April 20 2017, 17:56 #367209
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
R
rtobias 53
June 01 2017, 17:59 #368909
Quick clarification question: What would/could go in the Event box?
Randy
admin 33
June 02 2017, 11:01 #368927
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