Skip to content

react-router v7 triggers redirect lop #10885

@adrien-may

Description

@adrien-may

What you were expecting:
Accessing a list view needing Auth should redirect to login page

What happened instead:
It seems react-router v7 triggers a redirect loop. It is caught at some point and finally redirect to the login page but we can witness the redirect loop for a few seconds.

In #10850, this problem has been addressed for getOne queries.

Steps to reproduce:

Related code:

insert short code snippets here

Other information:

Environment

  • React-admin version:
  • Last version that did not exhibit the issue (if applicable):
  • React version:
  • Browser:
  • Stack trace (in case of a JS error):

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions