Fix edit links for directory indices