Skip to content

Support nested levels/use of content include tags #2845

Description

@sid3windr

Describe the bug
Multiple layers of page inclusion are not being evaluated correctly.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Create page A with some content.
  2. Create page B with some content, and include page A in it. This will display correctly.
  3. Create page C with some content, and include page B in it.
  4. Page C will have the page C content from step 3, and the page B content from step 2, followed by the {{@123}} inclusion tag for page A, instead of page A's content.

Expected behavior
All pages to be included should be displayed correctly.

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): 21.04
  • PHP Version: 7.3.29
  • Hosting Method (Nginx/Apache/Docker): Apache

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions