Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

backport navigation guard return values #3796

Copy link
Copy link
Open
@1593292349

Description

@1593292349
Issue body actions

What problem does this feature solve?

being able to return a value in a navigaiton guard:

router.beforeEach(to => {
  if (!user)
  return { name: 'login', query: { redirectTo: to.fullPath } }
})

### What does the proposed API look like?
Like v4. X

<!-- generated by vue-issues. DO NOT REMOVE -->

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestfixed on 4.xThis issue has been already fixed on the v4 but exists in v3This 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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.