Skip to content

A redirect with an alias keeps the original url #1755

Open
@callumacrae

Description

@callumacrae

Version

2.7.0

Reproduction link

http://jsfiddle.net/9r6xhqbp/37/

Steps to reproduce

Add the following to your router:

  {
    path: '/view',
    alias: '/view/*',
    redirect: '/analytics',
  },

Navigate to /view/blabla.

What is expected?

I'd expect to be redirected to /analytics

What is actually happening?

/view/* is now an alias for /analytics, where I would have expected it to redirect instead.

/view redirects as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions