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 |
Jump to:
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.
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| node_with_proper_redirect.diff | 377 bytes | Ignored | None | None |

#1
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
Cheers.
#3