Somethink like this not working:

$commands[] = ajax_command_invoke(null, 'history.pushState', array(NULL, NULL, 'path'));
  • Find answer, but not sure is it drupal way: in ajax_callback_function: $commands[] = ajax_command_invoke(null, 'custom_command_history', array('path')); and in custom js file: (function($) { $.fn.custom_command_history = function(data) { history.pushState(null, null, data); }; })(jQuery); – malcolm Jun 2 '13 at 19:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.