Fix trailing slash on attachment urls