0

The reason of such a rule would be that there is just one block a certain user can edit. And when he does so, after saving he is redirected to the blocks management page, which he has not the permission to see and manage. So I wish there would be a rule that allows to redirect "after saving an existing block" (combined with a condition of a certain user) to some other page.

I can't find any information about it in the documentation.

1

How is the user getting to the edit block screen? If its via contextual links then that should already be taking you can to the page you were on?

Or do you provide them the link to end the block? If so you could use the destination parameter to redirect then automatically (Same as what contextual links do) e.g.:

/admin/structure/block/manage/block/1/configure?destination=MYPAGETHEYSHOULDGOBACK

1
  • Very smart. I didn't think of it. To answer your question, for him to access the edit block screen, I created a custom link in a custom little management menu made for his profile. So now I just applied your suggestion, and it works perfectly. I also use block_access to limit the general and specific permissions on blocks just in case: drupal.org/project/block_access – Tritof Jan 4 '18 at 16:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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