Customise register/login url path
Hello, does anyone know a workaround on customising the login and register paths? I don't want them to be /login and /register. I checked the code and it seems that it is hardcoded, and I don't think there is a way to publish the route file unfortunately.
9 Replies
Every page has a route and a method to provide route. I think you will need to extend the base class and provide url that way
@krekas I tried that way but there's no option for that. The url is hardcoded in vendor/filament/filament/routes/web.php
Can you post github link to exact line where it is hard-coded?
Yes, here it is:
https://github.com/filamentphp/filament/blob/3.x/packages/panels/routes/web.php#L32
GitHub
filament/packages/panels/routes/web.php at 3.x · filamentphp/filament
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
I guess then you will need to create a custom pages
I have a custom page that extends the baseLogin, but that doesn't fix the problem yet
It can't extend the base login. It needs to be completely custom
I'll try to do a workaround. Thank you @krekas 🙏
Did you find a solution?