Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Creating custom hash router #2650
I need to use hash router. But the route must not contain slash after /# as shown below.
/#/user/test/ => /#user/test/
I tried with vue-realworld-example-app app using mode: 'hash' on router config. Also, I removed the initial / on the routes. But, when I type in the address bar /#user/test, the route doesn't work properly. But, if I click on a link it works as expected. My changes to the routes file
Also, on refreshing the page using browser refresh button /#user/test gets converted to /#/user/test.
What I want: