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?

Comments

nedjo’s picture

Category: support » feature
Status: Active » Needs review
StatusFileSize
new857 bytes

Here's an untested patch to return to the page, pls test and report if this works for you.

nedjo’s picture

StatusFileSize
new879 bytes

New patch using drupal_get_destination().

Patroclas’s picture

Many thanks nedjo - the patch worked. It sends the user back to the referring page with a 'message sent' message.
Thanks again

mikey_p’s picture

Assigned: Unassigned » mikey_p

I'll try to role this into a new release in the next few days.

jamesialford’s picture

How can I apply this patch using a hosting account??????

James