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

mpotter’s picture

This 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).