Fix revert for pages in directories, as seen in issue #736