-
-
Notifications
You must be signed in to change notification settings - Fork 613
Open
Labels
Description
Bug description
I have added a field to an entry called heading and I would like to show this if filled out in the breadcrumb.
This is the code:
{{ nav:breadcrumbs }}
{{ if total_results >= 2 }}
<li><a href="{{ url }}" class="{{ if !is_current }} text-sp-black-light {{ /if }}">{{ heading ?? title }}</a></li>
{{ if !last }}{{ svg src="gfx/chevron-right" class="h-3 text-sp-red" }}{{ /if }}
{{ /if }}
{{ /nav:breadcrumbs }}But what happens here is that heading from the entry is used three times. I was expecting Home > Benefits > Free seating but I'm getting Free seating > Free seating > Free seating.
As url, title and the other variables is pulled from the correct scope shouldn't heading do the same?
How to reproduce
Described above.
Logs
Environment
Environment
Application Name: Sjekkpunkt Medlemssider
Laravel Version: 12.52.0
PHP Version: 8.3.24
Composer Version: 2.8.10
Environment: local
Debug Mode: ENABLED
URL: sjekkpunkt-medlemssider.test
Maintenance Mode: OFF
Timezone: UTC
Locale: nb
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / single
Mail: smtp
Queue: database
Session: file
Storage
public/storage: NOT LINKED
Statamic
Addons: 1
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.3.2 PRO
Statamic Addons
jacksleight/statamic-bard-texstyle: 4.0.2Installation
Fresh statamic/statamic site via CLI
Additional details
No response
Reactions are currently unavailable