When submit node (create or edit), user gets redirected to front page

AdAstra - April 30, 2008 - 21:08
Project:Node Go To
Version:5.x-2.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I was using NodeGoTo 5.x-1.0. It was superb! (Thanks for the great module and for actively maintaining this issue queue!)

Once I upgraded to 5.x-2.0, whenever I submit a node (whether after creating it or editing it), I get redirected to the front page, instead of to the node itself.

I reverted back to 5.x-1.0 and the problem went away... I'm using D5.7 and I'm not using any other redirect module.

#1

jmturner - October 3, 2008 - 14:23

I'm also seeing this behavior. I've seen this on a clean install of Drupal 5.1 with NodeGoTo 5.x-2.0 as well as Drupal 5.10 with NodeGoTo 5.x-2.0. I would love to be able to use the new version as it describes the ability to integrate it with the Token module (which it does, but neither Node Tokens or CCK tokens which would seem to be required), but so far NodeGoTo 5.x-2.0 seems to degrade functionality rather than improve it. I've rolled back to NodeGoTo 5.x-1 until a fix is posted.

#2

mcarbone - January 5, 2009 - 20:53
Status:active» needs review

This is because nodegoto returns an empty string in the submit handler if none is specified, which means it's redirecting to the front page. Attached is a simple fix.

AttachmentSize
nodegoto.253272.patch 322 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.