F
Filament6d ago
Mike

How can I change the default login page route in Filament?

I'm trying to customize the login route to /admin-login instead of /login. However, after trying to access an unauthorized page, it redirects me to the default /login instead of the /admin-login route I created. How can I configure this correctly without breaking Filament's authentication? Any help would be appreciated
2 Replies
krekas
krekas6d ago
you could add a redirect from /login to /admin-login
andika
andika6d ago
in your panel provider
->loginRouteSlug('admin-login')
->loginRouteSlug('admin-login')
Want results from more Discord servers?
Add your server