Skip to content

Warning of invalid param for catch all route with named route redirect #1617

@jfrs

Description

@jfrs

Version

4.1.6

Reproduction link

jsfiddle.net/z0kytrqj/16/

Steps to reproduce

Navigate to a catch all route with a named route redirect

  {
    path: '/:pathMatch(.*)*',
    redirect: { name: 'HOME' }
  }

What is expected?

No warnings

What is actually happening?

Warning displayed: Discarded invalid param(s) "pathMatch" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomershas workaroundA workaround has been found to deal with the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions