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
krekas
krekas2y ago
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
THRESH
THRESHOP2y ago
@krekas I tried that way but there's no option for that. The url is hardcoded in vendor/filament/filament/routes/web.php
krekas
krekas2y ago
Can you post github link to exact line where it is hard-coded?
THRESH
THRESHOP2y ago
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
krekas
krekas2y ago
I guess then you will need to create a custom pages
THRESH
THRESHOP2y ago
I have a custom page that extends the baseLogin, but that doesn't fix the problem yet
krekas
krekas2y ago
It can't extend the base login. It needs to be completely custom
THRESH
THRESHOP2y ago
I'll try to do a workaround. Thank you @krekas 🙏
Troy
Troy15mo ago
Did you find a solution?

Did you find this page helpful?