8000 Redirection away from and back to route fails to cancel navigation · Issue #3133 · vuejs/vue-router · GitHub
[go: up one dir, main page]

Skip to content
Redirection away from and back to route fails to cancel navigation #3133
Closed
@luxaritas

Description

@luxaritas

Version

3.1.3

Reproduction link

https://codepen.io/luxaritas/pen/WNvRagw?editors=1010

Steps to reproduce

  • Run a long async function within a route guard
  • Start at route A, navigate to route B, and then back to A again before the guard for B resolves

What is expected?

Navigation to route B is cancelled, or at least completed and re-routed to route A

What is actually happening?

NavigationDuplicated is thrown, and the page navigates to and stays on route B

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixed on 4.xThis issue has been already fixed on the v4 but exists in v3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0