Skip to content

Feature - Ability for client to detect or respond to redirects #13435

@Rican7

Description

@Rican7

Describe the problem

From what I can tell, there's no way to reliably detect a redirect in client application code.

Describe the proposed solution

Ideally there'd be a way to detect a redirect, either as a hook or maybe even as a piece of the data included in the Navigation type.

Alternatives considered

I looked to see if this data was available in the navigating type from $app/state, checked to see if it was available in client hooks, and tried to see if I could just use document.referrer, to no avail.

Importance

would make my life easier

Additional Information

No response

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