use relative links on attachment view
closes #368