Return to referring page
Patroclas - January 25, 2009 - 21:54
| Project: | Contact Link |
| Version: | 6.x-1.0 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | mikey_p |
| Status: | needs review |
Description
When using this module, after the message send button is clicked, the user is taken to the message recipient's profile page. They may not have permissions to view this so they get an Access Denied. I need to send the user back to the page they were on when they clicked the 'Contact the Author' button but I can't see where this might be set. Is it set by this module, the Contact module or somewhere else?

#1
Here's an untested patch to return to the page, pls test and report if this works for you.
#2
New patch using drupal_get_destination().
#3
Many thanks nedjo - the patch worked. It sends the user back to the referring page with a 'message sent' message.
Thanks again
#4
I'll try to role this into a new release in the next few days.