filament/filament
v3.2.116
v11.27.1
v3.5.6
v8.3.11
My error page template is customised so that it's not the standard Laravel 404 page. It's set to use my main layouts/app.blade.php
and the page renders using this layout.
This layout includes @filamentStyles
and @filamentScripts
with the intention being to make use of some Filament components on the page, but when I hit a non-existent page, @filamentScripts
fails to load any scripts needed for Filament to operate - they also 404.
If I swap it to use @livewireScripts
, everything works.
So it looks like the @filamentScripts
tag is preventing loading of these assets on a 404 somehow.
I expect Livewire, Alpine and Filament scripts to be available to my page whether it's 404 or not.
Create a errors/404.blade.php
file that includes @filamentScripts
, then visit a URL that isn't handled by a route in your application. See that the necessary <script>
tags rendered but result in a 404 header and aren't loaded.
Swap @filamentScripts
for @livewireScripts
and note that the behaviour is different.
https://github.com/simonhamp/filament-scripts
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too