Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating custom hash router #2650

Closed
kingofdelphi opened this Issue Mar 15, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@kingofdelphi
Copy link

kingofdelphi commented Mar 15, 2019

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

kingofdelphi/vue-realworld-example-app@a2aabb6

Also, on refreshing the page using browser refresh button /#user/test gets converted to /#/user/test.

What I want:

  1. Clicking on links should change the address bar properly(this is working fine)
  2. Typing the address on address bar should route to the proper page(this is not working)
  3. browser refresh should not convert /#url to /#/url ie do not add slash automatically. (this is not working)
@vue-bot

This comment has been minimized.

Copy link

vue-bot commented Mar 15, 2019

Hello, your issue has been closed because it does not conform to our issue requirements. In order to ensure every issue provides the necessary information for us to investigate, we require the use of the Issue Helper when creating new issues. Thank you!

@vue-bot vue-bot closed this Mar 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.