Nova::withBreadcrumbs is only respected on first request, not subsequent inertia requests #5155
Unanswered
puzzledmonkey
asked this question in
Ideas & Feature Requests
Replies: 1 comment 1 reply
-
|
This is the current expected behaviour and was already considered during the development. Marking as feature request and will reconsider if there huge demand for it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
When using a Nova::withBreadcrumbs callback that might change per request, it appears this is only being evaluated on the first page load and afterwards is ignored. For example, checking for LensRequests and disabling breadcrumbs on all lens pages doesn't work.
Detailed steps to reproduce the issue on a fresh Nova installation:
Create a resource with a lens
Add this code to NovaServiceProvider boot()
Observe that visiting the lens page normally via an inertia request does NOT hide the breadcrumb bar. A page reload (on the lens page) will hide it. However, once hidden, clicking back onto a normal resource page (via an inertia request) will NOT show the breadcrumb bar until you once again reload the page on a normal resource page.
It seems that the withBreadcrumbs setting is only being used from the initial page load, and all further inertia requests don't change the visibility of the breadcrumb bar.
Beta Was this translation helpful? Give feedback.
All reactions