i am new to Drupal. I have few nodes with term reference. After creating nodes with term reference, i want to redirect user not on created node, but on term page. Is this possible?

  • Yes, it is. But it is not a part of any module I know. Could you link module name in your question to it's project on drupal.org please?
    – Mołot
    Commented Jul 7, 2015 at 14:22
  • What is the term page?
    – M a m a D
    Commented Jul 7, 2015 at 14:35
  • Taxonomy has vocabulary, and each vocabulary has its own terms. What i meant is, If you display that particular term on a full view.
    – Bhok
    Commented Jul 7, 2015 at 14:38
  • Using rules module you can redirect to other pages after the node has been saved. Try that module
    – M a m a D
    Commented Jul 7, 2015 at 15:08

1 Answer 1


You can set redirect state for your node form. For example

function my_module_form_alter( &$form, &$form_state, $form_id ){
  if($form_id == 'your_node_form_id') {
    $form['actions']['submit']['#submit'][] = '_mymodule_node_redirect'; 

 * Custom Submit Handler to set conditional redirection rule.
function _mymodule_node_redirect($form, &$form_state) {
  // If terms are already in the system.
  if($form_state['values]['your_taxonomy_field']['und'][0]['tid'] ==  'tid_to_compare_with') {
    $form_state['redirect'] = 'whereever you want';

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.