F
Filament15mo ago
THRESH

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
krekas15mo 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
THRESHOP15mo 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
krekas15mo ago
Can you post github link to exact line where it is hard-coded?
THRESH
THRESHOP15mo 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
krekas15mo ago
I guess then you will need to create a custom pages
THRESH
THRESHOP15mo ago
I have a custom page that extends the baseLogin, but that doesn't fix the problem yet
krekas
krekas15mo ago
It can't extend the base login. It needs to be completely custom
THRESH
THRESHOP15mo ago
I'll try to do a workaround. Thank you @krekas 🙏
Iranzi Dev
Iranzi Dev10mo ago
Did you find a solution?
Want results from more Discord servers?
Add your server