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

Thank you & How to Remove '#' on my URL #1

Open
daksamedia opened this issue Jul 10, 2019 · 1 comment
Open

Thank you & How to Remove '#' on my URL #1

daksamedia opened this issue Jul 10, 2019 · 1 comment

Comments

@daksamedia
Copy link

Hi @hayanisaid ,

Thank you for your tutorial, it made me understand how vueJS router really works is.

But my questions is, I got this on my URL :

http://localhost:8080/#/

What I expect is like this :

http://localhost:8080/

How do I remove hash mark on my URL?

@danielbehina
Copy link

Hi, it

Hi @hayanisaid ,

Thank you for your tutorial, it made me understand how vueJS router really works is.

But my questions is, I got this on my URL :

http://localhost:8080/#/

What I expect is like this :

http://localhost:8080/

How do I remove hash mark on my URL?

Hi @daksamedia It is not my repo, but you can remove it easily with mode: history, when you call new router:

const router = new VueRouter({ mode: 'history', routes: [...] })

more you'll find here: https://router.vuejs.org/guide/essentials/history-mode.html

Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants