Page MenuHomePhabricator

BookManager: Navigation bar should be added only to pages which are part of some book
Closed, ResolvedPublic

Description

Currently if a wiki has a page "Example" which is not in the list of chapters of any book (e.g. because it is a disambiguation page, or just a page which was created without being a chapter of a book), the extension still adds the navigation bar to it.

This shouldn't happen. It should check if the page is in some book (specifically if it is in the list of chapters corresponding to the base page name), and do not add the navigation if the page is not one chapter of the book.

An example is found in the image attached to Bug 28027:
http://bug-attachment.wikimedia.org/attachment.cgi?id=8287
The page "Teste/!" is not part of any book (there is no book "Teste" in the wiki), but we still see the navigation there.


Version: unspecified
Severity: enhancement

Details

Reference
bz28029