Skip to content

Book copy does not preserve chapter and page order #6077

@jodorelskin

Description

@jodorelskin

Describe the Bug

Description

When copying a book, the order of chapters and pages is not preserved.

The copied book has a different and inconsistent ordering compared to the original, even though the structure (chapters/pages) is correctly duplicated.

Steps to reproduce

Create a book with multiple chapters and pages
Manually define a specific order (or use numbered prefixes like 01), 02), etc.)
Copy the book
Open the copied book

Expected behavior

  • The copied book should preserve:
  • Chapter order
  • Page order within chapters

Actual behavior

  • Chapters and pages appear in a different order
  • The original ordering is lost

Additional notes

  • The issue occurs even when copying within the same shelf
  • Applying sorting does not fix the problem:
    • Setting sort to "None" → Save
    • Then to "Alphabetical" → Save
    • No change occurs
  • Manual reordering is unreliable and may require multiple attempts

Impact

This makes book duplication unreliable for structured documentation, since ordering must be rebuilt manually and cannot be trusted after copying.

Steps to Reproduce

  1. Create a book with multiple chapters and pages
  2. Manually define a specific order (or use numbered prefixes like 01), 02), etc.)
  3. Copy the book
  4. Open the copied book

Expected Behaviour

The copied book should preserve:

  • Pages and Chapter order into the Book

  • Page order within chapters

Screenshots or Additional Context

Browser Details

any browser

Exact BookStack Version

25.12.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions