You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Multi-Tenancy in Combination with ->path('') (or ->path('/')) and without ->tenantRoutePrefix('xyz') Routes in routes/web.php and other Packages routes (for example /horizon from Laravel Horizon) result in a 404 not found error (or a redirect to /login if not logged in to filament).
// routes/web.phpreturn [
Route::get('/test', function () { // Results in 404return"OK";
}
];
Expected behavior
Filament's Routes should be registered after the Routes in web.php and after other Packages Routes.
Visiting /test should work, visiting /horizon should work.
Steps to reproduce
Fresh Installation
Enable Multi-Tenancy
Set ->path('') for the panel
Add /test Route in web.php
Open /test -> Results in 404
Reproduction repository (issue will be closed if this is not valid)
mrmonat
changed the title
Tenant routes without prefix get precedence over "app's web routes"
Tenant routes without prefix get precedence over app's web routes
Nov 3, 2024
Package
filament/filament
Package Version
v3.2.117
Laravel Version
11.27.2
Livewire Version
No response
PHP Version
PHP 8.3.0
Problem description
When using Multi-Tenancy in Combination with
->path('')
(or->path('/')
) and without->tenantRoutePrefix('xyz')
Routes inroutes/web.php
and other Packages routes (for example/horizon
from Laravel Horizon) result in a 404 not found error (or a redirect to /login if not logged in to filament).Expected behavior
Filament's Routes should be registered after the Routes in
web.php
and after other Packages Routes.Visiting
/test
should work, visiting/horizon
should work.Steps to reproduce
->path('')
for the panel/test
Route inweb.php
/test
-> Results in 404Reproduction repository (issue will be closed if this is not valid)
https://github.com/mrmonat/filament-issue
Relevant log output
No response
Donate 💰 to fund this issue
The text was updated successfully, but these errors were encountered: