jquery-routes icon indicating copy to clipboard operation
jquery-routes copied to clipboard

Can I route without "#" hashes?

Open webarthur opened this issue 9 years ago • 2 comments

I want to use route with history.pushState like this:

  • http://example.com/
  • http://example.com/article/
  • http://example.com/article/1/
  • http://example.com/article/2/

Can I?

webarthur avatar Dec 02 '15 02:12 webarthur

Nope, it's not supported at the moment but I'm open for a PR for that.

thorsteinsson avatar Dec 02 '15 02:12 thorsteinsson

I found this article: http://krasimirtsonev.com/blog/article/A-modern-JavaScript-router-in-100-lines-history-api-pushState-hash-url

The class Router works fine to me. I hope it can be helpful.

webarthur avatar Dec 02 '15 13:12 webarthur