I'd like to redirect to a referring page after a comment is posted.

The users starts here at a view filtered by an argument:

http://localhost/jobticket/job/job-5

After clicking an "Add Comment" link the user goes to the node with the drupal_get_destination in the url:

http://localhost/jobticket/content/job-5?destination=jobs#comment-form

When the user submits a new comment the link temporarily changes to:

http://localhost/jobticket/comment/reply/8

And then is redirected to the comment just posted:

http://localhost/jobticket/content/job-5#comment-17

I'd like to send the user back to the original reffering url, whatever it may be, in this case http://localhost/jobticket/job/job-5.

Any suggestions?

Comments

awolfey’s picture

artscoop’s picture

hi, that's what i'm just trying to do.
after posting a comment, the page gets stuck to the comment's editor.
that is to say, that when i post a comment on a page, i can't see the parent node again until I click a link...

I'm interested too in finding something

coolo’s picture

Also looking for suggestions on this...