SoftwareBrothers/adminjs-expressjs

rootPath as slash causes endless redirect loop

Closed this issue · 1 comments

Lukáš Novotný wrote on slack:

Adminbro end in endless redirect loop when I set rootPath: "/"? It does a redirect to /login but it end in redirect loop.

Code to reproduce

const server = express()
const adminBro = new AdminBro({
    rootPath: "/",
    loginPath: "/login",
    logoutPath: "/logout",
    ...
})
const adminRouter = buildAdminRouter(adminBro)
server.use("/", adminRouter)
server.listen(3000, () => {
    console.log(`Server running at 3000`)
})

🎉 This issue has been resolved in version 3.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀