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

how to Replacing "#" Routes Using Backbone.js #4090

Closed
cybibo opened this issue Oct 24, 2016 · 1 comment
Closed

how to Replacing "#" Routes Using Backbone.js #4090

cybibo opened this issue Oct 24, 2016 · 1 comment
Labels

Comments

@cybibo
Copy link

cybibo commented Oct 24, 2016

E.g:
in router.js
routes: { "": "home", "first": "first" }, .....

in page:

<a href="#">home</a> <a href="#first">link first page</a>

in brower URL:www.domain.com/#first;
but i want to get
URL:www.domain.com/first;
in brower Address Bar.
how to replacing "#" in routes.

thanks!

@akre54
Copy link
Collaborator

akre54 commented Oct 25, 2016

You'll want to start Backbone.history with {pushState: true}.

In the future, please use StackOverflow for questions like this.

@akre54 akre54 closed this as completed Oct 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants