Issue Bug Resolved

#111008 showPathAboveMounts shows no path above the DB mounts of a non-admin user

Lina Wolf 10/10/26, 09:27 updated 10/15/26, 17:05

Description

The user TSconfig option options.pageTree.showPathAboveMounts shows no
path above the DB mounts of a non-admin user.

Steps to reproduce:

1. Create a non-admin backend user with a DB mount on a page some levels
deep, for example “Home > Products > Shop”.
2. Add this user TSconfig: options.pageTree.showPathAboveMounts = 1
3. Log in as this user and open the page tree.

Actual result: no path above “Shop”.
Expected result: the path “/Home/Products” above “Shop”, as the TSconfig
reference describes: “If set, the user db mount path above the mount
itself is shown.”

The path only appears when the page tree has several entry points: a
temporary mount (“Use as root”), alternative entry points, or page 0
among the DB mounts.

Cause: TreeController::pagesToFlatArray() sets the note only at
depth 0. For an ordinary user, getAllEntryPointPageTrees() builds one
virtual root (uid 0) and adds the DB mounts below it at depth 1. The
note goes to the virtual root, where getMountPointPath(0) returns an
empty string, and never to a mount. The code is the same in 13.4, 14.3,
and main.

  1. reported this before. Change 84793 (depth <= 1) was abandoned
    with the comment that the current state is correct. The documentation
    says otherwise, so one of the two needs to change: show the path above
    DB mounts, or state in the TSconfig reference that the option only
    applies to temporary mounts and other entry points.

Related: #96498

Reviews 2

History 15

  1. Wouter Wolters commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-15T17:05:14+00:00" > 10/15/26, 17:05 </span>

    Applied in changeset commit:68471e5bfe04fd87c183714557b3ca227df08f10.