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

    1️⃣ good first issuethis should be manageable for new-comershas workaroundhas a temporary fix to get around the problem⚡️ enhancementimprovement over an existing feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions