Bannakaffalatta
The GET method is not supported for route /. Supported methods: HEAD.
Started an issue with it as well, if it helps. https://github.com/filamentphp/filament/issues/13649
11 replies
The GET method is not supported for route /. Supported methods: HEAD.
I created a bare minimum filament-issue repo with a docker mimicing the environment to cause the issue. Steps to reproduce. https://github.com/waynestate/filament-issue?tab=readme-ov-file#issue
11 replies
The GET method is not supported for route /. Supported methods: HEAD.
I'm running into this issue as well. It is only an issue on the root
/
route for the Dashboard, all other routes work fine. Though my set up I'm doing a little weird which I'll try to explain as short as possible.
I am upgrading a CMS to use filament locked to the /v2/ folder. The way I have it set up in my vhost for apache is using an Alias such as Alias /v2 /var/www/cms/public
while the v1 cms public directory lives at /var/www/cms/www.80/
My initial AdminPanelProvider has it's path('')
to allow it to be the root https://cms.test/v2/
When things are not optimized (routes cached), everything works normal. Going to https://cms.test/v2/ filament dashboard loads and all my resources and routes work fine.
When I run php artisan optimize
, only https://cms.test/v2/ throws this GET not supported only HEAD. If I go to any of the other resources such as https://cms.test/v2/pages it loads and works fine. So it seems only the dashboard route is having the issue.
I added /v2/
to the path('v2/')
, then optimize (cache routes) and it loads the dashboard at https://cms.test/v2 and https://cms.test/v2/v2/ though all the resources are now accessed at https://cms.test/v2/v2/pages11 replies