fix dir_to_nav_link