Forced redirect to 'node' after node deletion

leafish_paul - December 22, 2005 - 19:35
Project:Drupal
Component:node system
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

A minor thing, but if a site has a different front page other than '/node', a user is still redirected to '/node' after deleting a node. Attached diff (apologies for it not being a correct patch - still ironing out my new Linux setup) fixes this by checking the site_frontpage variable, and falling back to 'node' if its not set.

AttachmentSizeStatusTest resultOperations
node_with_proper_redirect.diff377 bytesIgnoredNoneNone

#1

Dries - December 27, 2005 - 14:31
Status:needs review» active

If you want to redirect the user to the front page you can simply use drupal_goto() (no arguments).
I made that change and committed it to HEAD. Please test and mark this fixed.

#2

leafish_paul - January 10, 2006 - 20:13
Status:active» fixed

Cheers.

#3

raema - January 24, 2006 - 21:47
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.