The current comments.module redirects just fine for replies, but not for "moderate comments" or "Save settings" (we get sent to /comments with nothing to do). I've attached a meagre patch that corrects this, but I'M PRETTY SURE IT'S THE WRONG APPROACH (this was originally contributed as a patch to the "Simple and anonymous MT comments" thread, but got lost in the shuffle). I'm just creating a new issue, and pointing out one quick and dirty solution that doesn't address non-default displays (like the book).

CommentFileSizeAuthor
#2 drupal_342.57 KBnjivy
cmtdir.patch986 bytesmorbus iff

Comments

dries’s picture

I'm OK with the approach (for now). I modified the coding style a little and committed it to HEAD.

njivy’s picture

Priority: Critical » Normal
StatusFileSize
new2.57 KB

This patch provides more flexibility because the return URL is specified in the form before submit is pressed.

moshe weitzman’s picture

a small nit - for consistency with user login form, i suggest using the form field name 'destination' instead of return_url

dries’s picture

Using hidden destination fields is a problem when caching is enabled.