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?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | contactlink-destination.patch | 879 bytes | nedjo |
| #1 | contactlink-destination.patch | 857 bytes | nedjo |
Comments
Comment #1
nedjoHere's an untested patch to return to the page, pls test and report if this works for you.
Comment #2
nedjoNew patch using drupal_get_destination().
Comment #3
Patroclas commentedMany thanks nedjo - the patch worked. It sends the user back to the referring page with a 'message sent' message.
Thanks again
Comment #4
mikey_p commentedI'll try to role this into a new release in the next few days.
Comment #5
jamesialford commentedHow can I apply this patch using a hosting account??????
James