special case for prev/next linking, where it clashes with a directory