Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
On delete page, if click Cancel link and user doesn't have Administrator role, there is an error
Proposed resolution
Added redirect to the Edit Post page.
Comment | File | Size | Author |
---|---|---|---|
#4 | post-delete-cancel-redirect-doesnt-work-2875275-3.patch | 830 bytes | ToxaViking |
Selection_229.png | 51.06 KB | ToxaViking |
Comments
Comment #2
ToxaViking CreditAttribution: ToxaViking as a volunteer and at Lemberg Solutions, Drupal Ukraine Community commentedComment #3
ToxaViking CreditAttribution: ToxaViking as a volunteer and at Lemberg Solutions, Drupal Ukraine Community commentedComment #4
ToxaViking CreditAttribution: ToxaViking as a volunteer and at Lemberg Solutions, Drupal Ukraine Community commentedComment #5
jaapjan CreditAttribution: jaapjan at Open Social commentedGreat catch!
It has been merged after some minor changes (including respecting the destination parameter and moving the code to PostDeleteForm).
https://github.com/goalgorilla/open_social/pull/368