Forums

How to code Redirect Action in CF v6

omidhz 18 Apr, 2017
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.
GreyHead 19 Apr, 2017
Answer
1 Likes
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
Max_admin 19 Apr, 2017
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, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
omidhz 20 Apr, 2017
Thank you for your reply.
Here are what I have tested and the results.

=======================
Redirect URL: http://localhost/joomla/index.php
URL Parameters:
[list]option:com_content
view:article
id:6
Itemid:112[/list]
Result: Form redirected to http://localhost/joomla/index.php

=====================
Redirect URL: {url:http://localhost/joomla/index.php}
URL Parameters:
[list]option:com_content
view:article
id:6
Itemid:112[/list]
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.
Max_admin 20 Apr, 2017
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, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
rtobias 01 Jun, 2017
Quick clarification question: What would/could go in the Event box?
Max_admin 02 Jun, 2017
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, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.