Fix file editing on multi-site

Closes #1302