thorsteinsson/jquery-routes

Change hash to ( #! )

Opened this issue · 1 comments

Hi
How can replace # in route to #! Like
exemple.com/#!/home/

Say for the moment you have a home route defined like so:

$.routes.add('/home/', loadHome);

If you want to add a ! to the URL you need to add it behind the first slash:

$.routes.add('!/home/', 'loadHome);