When deleting a resource from a section, upon confirmation of deletion you should find yourself back at the section you just deleted from. Instead, Moodle takes you back to the top of the page. The URL reveals the problem:
The section number has not been passed back to /course/mod.php, which then has nothing to append to the call to view.php (on line 245 of mod.php).
This can be fixed by adding this to /course/mod.php at line 472:
$form->sr = $sectionreturn;
and this to /course/mod_delete.html at line 9:
<input type="hidden" name="sr" value="<?php p($form->sr) ?>" />
Seems to work OK on my test server.