Fix directories on index links