fixed regression where non-pages were displayed in page links