Skip to content

value.tsr cause wrong redirect #2843

@Zeahow

Description

@Zeahow

Version: v1.7.4

After upgrading the version from v1.7.2 to v1.7.4, the logic of value.tsr has changed. Some cases that should return false will return true now.

image

I register a handler with path logout, while path login is handled in NoRouter handler. Only login will be handled in NoRouter. NoRouter will return 404 if path is login/.

In v1.7.2 login will enter NoRouter, and it will be handled. But in v1.7.4, value.tsr will be true so that the request will be rediredcted to login/ which will return 404.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions