fixed getNavigation to allow for index pages in sub folders