Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I have a contextual link on a block that will take the user to an admin screen with a delete button on the admin screen. The delete button works fine when not coming from the contextual link. I noticed the contextual link adds "destination=node" to the end of the URL. The fact that the contextual link adds that to the URL does not allow for my admin screen to redirect to the delete confirm admin screen. If i remove the "destination=node" from the admin screen URL, it goes to the delete confirm admin screen with no issues. Has anyone else had this issue? I noticed this is for absolutely any module or block in drupal. If going to the admin screen from a contextual link and it has a delete button on the admin screen, the delete functionality will not work! Any suggestions?

share|improve this question

1 Answer

up vote 1 down vote accepted

hook_menu_contextual_links_alter() allows you to go in and change anything your heart desires. :)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.