When you set up a course for anyone on the web to view various pages using the "Make this course publicly visible (student data will remain private)" feature in the course settings, and you disable the Pages in the Course Navigational links. The "View All Pages" button will still show to all who access the page. If a user clicks on the button, it returns the user to the home page and informs them the page has been disabled.
Please add logic that when the Pages feature is disabled in the navigational section, the "View all button is disabled in the top of the page. Currently if some is viewing pages from the module section, this heading is not shown.