In my controllers init() method I call the AjaxContext-Helper and set it for some methods/actions in that controller. Like so:
public function init()
{
$ajaxContext = $this->_helper->getHelper('AjaxContext');
$ajaxContext->addActionContext('setlabel', 'html');
$ajaxContext->initContext();
}
Now when I want to use redirect from an ajax-request to a non-ajax method...
$this->redirector->gotoSimple('manage', 'team', null, array('id' => $teamID));
I have the problem that the page doesn't load. I assume that's because the AjaxContext messes up the headers.
I tried clearHeaders and clearContexts before redirecting but nothing works.
[edit] in the respective ajaxed method (AjaxContent) I normally responde with an ajax response to an myviewscript.ajax.phtml. But in a certain case I now want to redirect to a normal non-ajax action in another controller.[/edit]
Any ideas? Thanks!