Skip to content

Error: Redirected from X to Y via a navigation guard. #3221

@jasonlfunk

Description

@jasonlfunk

Version: 3.3.2

abort(createNavigationRedirectedError(current, route))

I have a Navigation Guard that does some various checks and redirects when necessary. Vue-router is not throwing this error when I do. Though everything is still working fine.

Is there a reason why this error is being thrown? What is the "correct" way to redirect via a navigation guard?

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