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.
When you edit a file/folder and you want to click cancel, you will be redirected to the node.
I think this is not correct in this case because the cancel button in case of file will download the file, in case of folder will view the folder node.
Thank you
Comments
Comment #1
mpotter CreditAttribution: mpotter commentedThis is a known issue. Thought there was already an issue on it, but can't find it now. But it's on our internal bug list.
It's a bit tricky to fix since the hook for redirecting access to a node with a single file needs to direct to the file and clicking Cancel doesn't actually provide any easy way to hook into that. To Drupal clicking Cancel just looks like a normal click on the document itself (remember that "Cancel" is just the renamed "View" tab normally used in Drupal).