Skip to content

[BUG] Infinite redirect loop when set frontend_path in rxconfig.py #5130

@trungkien210493

Description

@trungkien210493

Describe the bug
When I set frontend_path (e.g. /app) in rxconfig and try to open a non-existent endpoint. It show the 404 page and infinite redirect loop

To Reproduce
Steps to reproduce the behavior:

  • Create new project by reflex init
  • Add frontend_path to rxconfig
  • Start with: reflex run

Expected behavior
It should show the 404 page and does not redirect as frontend_path is None.

Screenshots

Image

Specifics (please complete the following information):

  • Python Version: 3.12.8
  • Reflex Version: 0.7.5
  • OS: Pop! OS
  • Browser (Optional): Firefox

Additional context
Add any other context about the problem here.

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