Hello hello,

I'd like to store the results of drupal_get_destination before the modal is activated. Otherwise there is no way to know the starting page once the modal has started.

Yes, no? It's useful for when you have outgoing links to a MENU_CALLBACK, and you need a drupal_goto().

Comments

nagiek’s picture

This seems similar to the problem at #1036962: Edit link destination incorrect when using AJAX-enabled views.

Just a comment: I have no idea where this info would go. Put it in $_POST I guess?

nagiek’s picture

There is a cancel path variable that can be set in $form_info. But this cannot be set automatically. $_POST is the way to go I think.