adminjs icon indicating copy to clipboard operation
adminjs copied to clipboard

[Bug]: Editing a many-to-many relation does not respect redirectUrl

Open chawes13 opened this issue 5 months ago • 0 comments

Contact Details

No response

What happened?

Editing a many-to-many relation from the items tab does not respect the redirect url and take the user back to the original resource.

E.g., User, Group, GroupUser. Editing the user's group name from their show page has a redirectUrl of redirectUrl=http%3A%2F%2Flocalhost%3A3000%2Fadmin%2Fresources%2FUser%2Frecords%2F2db1e0c7-85f1-4726-b856-c035d2cd5096%2Fshow%3Ftab%3Dgroups, but saving on /resources/Group/records/:id/edit navigates back to /resources/Group

Bug prevalence

Always

AdminJS dependencies version

adminjs 7.5.12 @adminjs/relations 1.1.2 and 1.1.0 (pinned the latter as a result of https://github.com/SoftwareBrothers/adminjs/issues/1743) @adminjs/prisma 5.0.4

What browsers do you see the problem on?

No response

Relevant log output


Relevant code that's giving you issues


chawes13 avatar Aug 22 '25 13:08 chawes13