Page previews failing for pages that begin with included content #377

Closed
opened 2026-02-04 19:13:17 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @XtremeBain on GitHub (Jul 18, 2017).

For Bug Reports

  • BookStack Version: v0.17.1
  • PHP Version: 7.0.15
  • MySQL Version: 5.7.17
Expected Behavior

The chapter page which lists pages with their previews should properly render the preview for pages that have included content in the beginning of them.

Actual Behavior

On the main page of a chapter that lists all of a chapter's pages, if a page's preview contains an include tag for another page or bookmark, there is a javascript TypeError exception logged to the console and the page list does not render.

Originally created by @XtremeBain on GitHub (Jul 18, 2017). ### For Bug Reports * BookStack Version: v0.17.1 * PHP Version: 7.0.15 * MySQL Version: 5.7.17 ##### Expected Behavior The chapter page which lists pages with their previews should properly render the preview for pages that have included content in the beginning of them. ##### Actual Behavior On the main page of a chapter that lists all of a chapter's pages, if a page's preview contains an include tag for another page or bookmark, there is a javascript TypeError exception logged to the console and the page list does not render.
OVERLORD added the 🐛 Bug label 2026-02-04 19:13:17 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jul 22, 2017):

@XtremeBain Thanks for reporting, Will be in the next bugfix release.

I've updated it so included content is parsed into the text view for list previews and searching. This is only on save though (For performance reasons) so it is possible that this text content may become outdated if the included content is changed.

@ssddanbrown commented on GitHub (Jul 22, 2017): @XtremeBain Thanks for reporting, Will be in the next bugfix release. I've updated it so included content is parsed into the text view for list previews and searching. This is only on save though (For performance reasons) so it is possible that this text content may become outdated if the included content is changed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#377