I use in my modul automodal_add() to redirect after the modalframe is closed. What ever I try I can't get a redirection to my defined node. I think now this function is broken and want to submit a support request.
This is my automodal_add call:
automodal_add('.link-change-request-automodal', array('width' => 650,'height' => 250,'automodalClose' => TRUE, 'automodalRedirect' => 'http://www.my-domain.com/redirect-page'));
The modalframe closes as expected.
I just change my module weight to 10 because I work with cck fields and I have to change some of their values in the after build function. Is it possible that the weight could be a part of the problem? I tried already to change the weight of the modalframe and automodal module but without success. I also tried to put an alert('test') into the Drupal.automodal.onSubmitCallback function. I notice that this function is never called. In firebug is no error written. So I am really clueless what i made wrong.
I tried the latest modalframe and dev version and the same with automodal but without success. I also tried the url just with www.my-domain.com/redirect-page and also /redirect-page. Nothing works.
Any help is welcome to solve this issue.
I recognized also that automodal_form_alter(&$form, $form_state, $form_id) missed a &. So I changed it to automodal_form_alter(&$form, &$form_state, $form_id) this. Just a notice.
Comments
Comment #1
dsnopekI've been experiencing the same issue EXCEPT it seems to work on Chrome. So, broken in all browsers, except Chrome. :-) I'm trying to dig into it now.
Comment #2
dsnopekHrm, ok, what worked for me was passing an absolute URL, which it looks like you're already doing. :-/ Sorry, I'm not of any help.
Comment #3
dsnopekCannot reproduce - works fine for me!