I was using this module on a site which has workbench_moderation.module active

On node save, I got an infinite redirect. The path was node/xx/current-revision

This is the code in workbench moderation:

/**
 * Redirect to the current revision of a node after editing.
 */
function workbench_moderation_node_form_submit($form, &$form_state) {
  $form_state['redirect'] = array('node/' . $form_state['node']->nid . '/current-revision');
}
<

Comments

emptyvoid’s picture

Issue summary: View changes
a_thakur’s picture

I am not able to reproduce the error on the current recommended release(7.x-1.5).

anybody’s picture

Perhaps have a look at #3111694: Do not override 'redirect' by hard on node form submit (also D8) if this is a duplicate or has the same reason?