Skip to content

[6.x] Augment nav blueprint fields onto manual-URL nav items - #15235

Merged
jasonvarga merged 1 commit into
statamic:6.xfrom
lazerg:fix/issue-15233-nav-blueprint-fields-manual-url
Aug 21, 2026
Merged

[6.x] Augment nav blueprint fields onto manual-URL nav items#15235
jasonvarga merged 1 commit into
statamic:6.xfrom
lazerg:fix/issue-15233-nav-blueprint-fields-manual-url

Conversation

@lazerg

@lazerg lazerg commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Fields defined on a navigation blueprint only reach nav items that reference an entry. A manual-URL item, including a manual-URL child under an entry-backed parent, falls back to a hardcoded key list, so Antlers resolves the missing key against the enclosing scope instead of the item's own value. In practice a manual-URL child silently inherits its parent's field value.

AugmentedPage::keys() only merges blueprintFields()->keys() through parent::keys(), which only runs when the page has an entry. blueprintFields() already resolves the right blueprint for both entry and non-entry pages, it just wasn't merged into the key list on the non-entry branch.

This merges blueprintFields()->keys() into the key list unconditionally, so manual-URL items report their own blueprint field values instead of the parent's.

Fixes #15233

@jasonvarga
jasonvarga merged commit 1e69e90 into statamic:6.x Aug 21, 2026
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants