SoftwareBrothers / adminjs

AdminJS is an admin panel for apps written in node.js
https://adminjs.co
MIT License
8.15k stars 659 forks source link

[Bug]: Backbutton in the drawer when action.showInDrawer = true routes to invalid route #1543

Closed vinu closed 1 year ago

vinu commented 1 year ago

Contact Details

No response

What happened?

When you have resources with

actions: {
  show: {
    showInDrawer: true,
},

The show opens in the drawer, but the back button goes to an invalid route.

Bug prevalence

When ever the show action is opened in a drawer

AdminJS dependencies version

"@adminjs/express": "^6.0.0", "@adminjs/mongoose": "^4.0.0", "adminjs": "^7.2.0", "express": "^4.18.2", "express-formidable": "^1.2.0", "express-session": "^1.17.3", "mongoose": "7.0.1", "nodemon": "^3.0.1", "tslib": "^2.6.1"

What browsers do you see the problem on?

No response

Relevant log output

No response

Relevant code that's giving you issues

No response