Skip to content

ReflexURL.path cannot be accessed as VarΒ #5664

@abulvenz

Description

@abulvenz

Describe the bug
I wanted to remove the deprecation warning about router.path -> router.url.

To Reproduce

  • Create empty app
  • Place State.router.url.path
  • See the error reflex.utils.exceptions.VarAttributeError: The State var reflex.state.State.router["url"] of type <class 'reflex.istate.data.ReflexURL'> has no attribute 'path' or may have been annotated wrongly.

Expected behavior
No error, because the deprecation message says, I should use url instead of path

  • Python Version: 3.13.5
  • Reflex Version: 0.8.?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions