Skip to content

Redirected when going from path to path via a navigation guard #3835

@targetlucked69

Description

@targetlucked69

I am getting flooded by these errors in Sentry due to vue-router v3 unable to handle next errors.

The example error I got in sentry:

Redirected when going from "/login?redirect=%2Fprofile" to "/profile" via a navigation guard.

This is on purpose as I want to check if the user is authenticated and redirect back to the page he tried to access before it.

I saw this in stackoverflow but seems like this will break a lot of things - https://stackoverflow.com/a/63819014/4698790

Is there a way to handle these errors in v3?

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