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.
If I am on mysite.com/file/1/edit?destination=foo/bar%3Fvar1%3Dxxx then the cancel button does not work properly because the query string from destination is encoded when it is included in the #href property of the $form['cancel'] element. Thats a bit of a mouth-full, but basically we need to split up the query string
and path from the destination.
Note: My real-world case here is that I created a view of files with exposed filters and an edit link in order to customize the table found at /admin/content/file
Comment | File | Size | Author |
---|---|---|---|
#2 | file-entity-cancel.patch | 980 bytes | bleen |
#1 | fiel-entity-cancel.patch | 979 bytes | bleen |
Comments
Comment #1
bleen CreditAttribution: bleen commented...and here is a patch
Comment #2
bleen CreditAttribution: bleen commented... and here is a patch without the spelling error in the comment
Comment #3
aaron CreditAttribution: aaron commentedWorks as advertised.
Comment #4
aaron CreditAttribution: aaron commented#2: file-entity-cancel.patch queued for re-testing.
Comment #5
aaron CreditAttribution: aaron commentedCommitted to http://drupalcode.org/project/file_entity.git/commit/f23e5b8