adminjs-expressjs
adminjs-expressjs copied to clipboard
Changing the root path breaks login redirect
After changing the root path to "" the login redirect breaks and is stuck with the message "Found. Redirecting to"
@lpbonomi I don't think it's mentioned in any docs, but when you create a new adminjs instance you can pass loginPath:
const adminJS = new AdminJS({
[
// Your resources go here
],
rootPath: "/newadmin",
loginPath: "/newadmin/login",
});
You can look into this method
If I remember correctly, I had also changed the login and logout path. So I guess it's some other thing. Thanks anyways!