Incorrect destination on administration links
tomws - March 23, 2009 - 21:55
| Project: | Guestbook |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
As the title says, the Cancel link on the Delete entry confirmation page incorrectly points to http://guestbook/

#1
This is also a problem for the other administrative links on the guestbook entries. It's a problem with the way the links are built manually in the code. Using the drupal_get_destination() function seems to fix this. Patch attached.
Also attached in a patch that can be applied a version that has my pre-publish moderation patch already applied.
#2
Bad title change last time. It's not the links, but the destinations that are flawed. For example, they come out as
http://example.com/guestbook/delete/1?destination=/guestbookor
http://example.com/?q=guestbook/delete/1&destination=/?q=guestbookWhen propagated to the confirmation handler, that translates to a final destination http://guestbook.
The patch still works, but my description was miserable. Apologies, and hope this helps.