Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the root path breaks login redirect #112

Open
lpbonomi opened this issue Sep 1, 2023 · 2 comments
Open

Changing the root path breaks login redirect #112

lpbonomi opened this issue Sep 1, 2023 · 2 comments

Comments

@lpbonomi
Copy link

lpbonomi commented Sep 1, 2023

After changing the root path to "" the login redirect breaks and is stuck with the message "Found. Redirecting to"

@vitalii-bulyzhyn
Copy link

vitalii-bulyzhyn commented Sep 6, 2023

@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

@lpbonomi
Copy link
Author

lpbonomi commented Sep 6, 2023

If I remember correctly, I had also changed the login and logout path. So I guess it's some other thing. Thanks anyways!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants