Skip to content

Commit e0e99b2

Browse files
committed
actually make depth work
1 parent e8695c4 commit e0e99b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Http/Controllers/CP/Collections/EntriesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ private function entryUri($entry, $tree, $parent)
491491
->merge([
492492
'parent_uri' => $parent ? $parent->uri() : null,
493493
'slug' => $entry->slug(),
494-
// 'depth' => '', // todo
494+
'depth' => $parent ? $parent->depth() + 1 : 1,
495495
'is_root' => false,
496496
])
497497
->build($entry->route());

0 commit comments

Comments
 (0)