Skip to content

vue-router.esm-bundler.js?6c02:1031 Uncaught Error: Route paths should start with a "/": "**" should be "/**". #3349 #538

@wxwzl

Description

@wxwzl

Version

4.0.0-beta.13

Reproduction link

http://404

Steps to reproduce

{ path: "**", redirect: "/404" },

What is expected?

{ path: "**", redirect: "/404" }, it works;

What is actually happening?

it does not work ,when i change it to "/**", it can not redirect the not-matched route to "/404"

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