This is useful after an ajax form submit, like in a modal, where a server-side redirect is not possible.

Example usage:

$commands = array();
$commands[] = ctools_ajax_command_redirect('node/1');

Comments

sirkitree’s picture

Status: Needs review » Needs work

Looks good, simple and very useful. You'll want to add the comment to the main comment section above which describes the various commands within ajax.inc around line 68

zroger’s picture

Status: Needs work » Needs review
StatusFileSize
new1.67 KB

New patch, with additional comment.

sirkitree’s picture

Status: Needs review » Reviewed & tested by the community

Works great!

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

Committed. We're going to have to figure out what to do for 7.x: Submit this to core or have ctools provide extra commands that core doesn't?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.