Skip to content

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

Description

@chawes13

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 #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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions