Is it possible to change the admin url?
Default right now is
/admin
, what if I want to change it to
/login
or
/custom-admin-login
?
great, thanks, I missed that in the doc
routes: {
admin: '/custom-admin-login',
},
here is what I added in
payload.config.ts
in case someone else comes across this question
Thanks mate, this helps me as well. Cheers
this is all well and good to create a new landing page; but I'm fine with the current login but want to change /admin once logged in to be
settings
. So when you changed yours to
/custom-admin-login
what does navigation upon login look like? Take the following example:
http://localhost:3000/admin/collections/media?limit=10
With your change does it then look like this:
http://localhost:3000/custom-admin-login/collections/media?limit=10
cc:
@275258786388639744just in case you know
yes. If you change admin route to /custom-admin-login, then any url that would originally be /admin/* becomes /custom-admin-login/*
I tried this, but the old /admin is still working (ot forwarding me to the changed path) , which is bad.
Other than that, I cant login...
404 notfound error
Star
Discord
online
Get dedicated engineering support directly from the Payload team.