Skip to content

Fix collection breadcrumbs order on collections#2374

Merged
alecritson merged 2 commits into1.xfrom
fix-collection-breadcrumbs-order
Jan 29, 2026
Merged

Fix collection breadcrumbs order on collections#2374
alecritson merged 2 commits into1.xfrom
fix-collection-breadcrumbs-order

Conversation

@alecritson
Copy link
Collaborator

Currently breadcrumbs are ordered incorrectly for sub collections, take this tree for example:

image

If we go into the Test B Child D Grandchild A Child A collection, we see the breadcrumbs appear like so:

image

Which is incorrect as ->ancestors will just be ordering the records based on their default Laravel sorting, not the order they appear in the tree.

This PR looks to solve this by introducing the nested set defaultOrder sorting to the query, afterwards the result is:

image

@alecritson alecritson merged commit 154f067 into 1.x Jan 29, 2026
46 checks passed
@alecritson alecritson deleted the fix-collection-breadcrumbs-order branch January 29, 2026 11:20
@github-project-automation github-project-automation bot moved this from Todo to Done in Roadmap Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants