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

nedjo - January 26, 2009 - 03:30
Category:support request» feature request
Status:active» needs review

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

AttachmentSize
contactlink-destination.patch 857 bytes

#2

nedjo - January 26, 2009 - 04:52

New patch using drupal_get_destination().

AttachmentSize
contactlink-destination.patch 879 bytes

#3

Patroclas - January 26, 2009 - 10:16

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

#4

mikey_p - May 12, 2009 - 10:13
Assigned to:Anonymous» mikey_p

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

 
 

Drupal is a registered trademark of Dries Buytaert.