Skip to content

Hash router remove initial slash not working #2651

@ghost

Description

Version

3.0.1

Reproduction link

https://github.com/kingofdelphi/vue-realworld-example-app/blob/master/src/router/index.js

Steps to reproduce

  1. yarn install
  2. yarn serve

What is expected?

Clicking on links should change the address bar properly.
Typing the address on address bar should route to the proper page.
Browser refresh should not change url i.e. url must stay same on browser refresh / reload.

What is actually happening?

Clicking on links is changing the address bar properly with proper route(this is expected behavior)
Typing the address on address bar doesn't route to the proper page.
Browser refresh should not convert /#url to /#/url ie do not add slash automatically.


I had successfully used react-router to solve the problems listed above, but I can't seem to get it to work with vue-router.

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